TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Mojo changelog: Traits have arrived!

18 点作者 zengid超过 1 年前

3 条评论

acheong08超过 1 年前
It’s looking less and less like Python. At this point, might as well be writing Rust
评论 #38523930 未加载
评论 #38527503 未加载
评论 #38527737 未加载
评论 #38524750 未加载
guidorice超过 1 年前
One of the really neat things about mojo is, as a superset of python, things like static typing, and ownership&#x2F;moving can be gradually adopted. It encourages value semantics, and is borrow-by-default. So you can literally just write pythonic looking `def` functions, but then gradually opt in to the more performant features, e.g. with `fn` functions.<p>In my mind this is kinda similar to what TypeScript does as a super-set of JavaScript- except that was not about performance, it was about purely about typing.
ilrwbwrkhv超过 1 年前
So they have given up and are looking to get acquired now? All vision and taste have left the org.