内容简介:Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下:语言
Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下:
语言
-
现在 Closures 实现了 Copy and/or Clone
-
Inclusive range 语法,如
for x in 0..=10现可用 -
Stablise
'_. The underscore lifetime can be used anywhere where a lifetime can be elided. -
impl Traitis now stable allowing you to have abstract types in returns or in function parameters. e.g.fn foo() -> impl Iterator<Item=u8>orfn open(path: impl AsRef<Path>). -
Pattern matching will now automatically apply dereferences.
-
128-bit integers in the form of
u128andi128are now stable. -
maincan now returnResult<(), E: Debug>in addition to(). -
A lot of operations are now available in a const context. E.g. You can now index into constant arrays, reference and dereference into constants, and use Tuple struct constructors.
下载地址:
以上所述就是小编给大家介绍的《Rust 1.26 版本发布,系统编程语言》,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对 码农网 的支持!
猜你喜欢:- Crystal 编程语言正式迈入 1.0 版本
- Rust 1.26 版本发布,系统编程语言
- Elixir 1.4.4 版本发布,函数式编程语言
- Dlang 2.080.0 版本发布,系统级编程语言
- 动态编程语言 Julia 0.7 alpha 版本新增许多语言特性
- Nim 发布 0.19 版本 ,命令式编程语言
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
程序员修炼之道(影印版)
Andrew Hunt、David Thomas / 中国电力出版社 / 2003-8-1 / 39.00
本书直击编程陈地,穿过了软件开发中日益增长的规范和技术藩篱,对核心过程进行了审视——即根据需求,创建用户乐于接受的、可工作和易维护的代码。本书包含的内容从个人责任到职业发展,直至保持代码灵活和易于改编重用的架构技术。从本书中将学到防止软件变质、消除复制知识的陷阱、编写灵活、动态和易适应的代码、避免出现相同的设计、用契约、断言和异常对代码进行防护等内容。一起来看看 《程序员修炼之道(影印版)》 这本书的介绍吧!