内容简介:Rust 1.26 版本发布。Rust 是一门由 Mozilla 开发的专注于安全性,速度和并发性的系统编程语言。主要更新内容如下: 语言 现在 Closures 实现了 Copy and/or Clone Inclusive range 语法,如 for x in 0..=10 现...
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 Trait
is 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
u128
andi128
are now stable.main
can 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.
下载地址:
【声明】文章转载自:开源中国社区 [http://www.oschina.net]
以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网
猜你喜欢:- Crystal 编程语言正式迈入 1.0 版本
- Rust 1.26 版本发布,系统编程语言
- Elixir 1.4.4 版本发布,函数式编程语言
- Dlang 2.080.0 版本发布,系统级编程语言
- 动态编程语言 Julia 0.7 alpha 版本新增许多语言特性
- Nim 发布 0.19 版本 ,命令式编程语言
本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
"笨办法"学Python
肖 (Zed A.Shaw) / 王巍巍 / 人民邮电出版社 / 2014-11-1 / CNY 49.00
本书是一本Python入门书籍,适合对计算机了解不多,没有学过编程,但对编程感兴趣的读者学习使用。这本书以习题的方式引导读者一步一步学习编程,从简单的打印一直讲到完整项目的实现,让初学者从基础的编程技术入手,最终体验到软件开发的基本过程。 本书结构非常简单,共包括52个习题,其中26个覆盖了输入/输出、变量和函数三个主题,另外26个覆盖了一些比较高级的话题,如条件判断、循环、类和对象、代码测......一起来看看 《"笨办法"学Python》 这本书的介绍吧!