Ruby 计划跳过 2.8.0 直接发布 3.0.0 版本
喜欢就关注我们吧!
Ruby 创始人 Matz 最近提交的 commit 显示,他计划今年跳过 2.8.0 直接发布 3.0.0 版本。
Ruby 3 会在每年的版本发布中添加一些新功能,当达到制定的目标时,就是 Ruby 3,从而避免带来不兼容的更改。
从 Hacker News 对这个话题的讨论来看,有人指出 Ruby 3 有望引入新的并发原语(concurrency primitives),这些原语可以规避全局解释器锁(guilds / isolates),并为 stdlib 引入类型定义,以提供可选的类型支持,这将会是 Ruby 的重要版本。
关于类型参数方面,Ruby 3 确实有添加“静态类型”的计划,去年知名 Ruby 开发者 Paul Tarjan 曾发表演讲表示正与 Ruby 核心团队合作开发并为 Ruby 添加“静态类型”特性,“静态类型”将会是 Ruby 3 stdlib 源码的一部分。
Ruby 目前最新的稳定版是 2.7.1,从 2.6.0 引入 JIT,到 2.7.0 引入模式匹配、紧凑 GC 和改进 REPL,也许 Ruby 2.8.0 加入的新特性足够让其成为一个更大的版本——3.0.0。
▼
觉得不错,请点个在看呀
最新评论
推荐文章
作者最新文章
你可能感兴趣的文章
Copyright Disclaimer: The copyright of contents (including texts, images, videos and audios) posted above belong to the User who shared or the third-party website which the User shared from. If you found your copyright have been infringed, please send a DMCA takedown notice to [email protected]. For more detail of the source, please click on the button "Read Original Post" below. For other communications, please send to [email protected].
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。
版权声明:以上内容为用户推荐收藏至CareerEngine平台,其内容(含文字、图片、视频、音频等)及知识版权均属用户或用户转发自的第三方网站,如涉嫌侵权,请通知[email protected]进行信息删除。如需查看信息来源,请点击“查看原文”。如需洽谈其它事宜,请联系[email protected]。