RustPrimer
RustPrimer copied to clipboard
The Rust primer for beginners. We need native English speaker help us modify the translation.
闭包的理解
13.1 章,闭包的理解: "另一个理解move闭包的方法:它给出了一个拥有自己栈帧的闭包。没有move,一个闭包可能会绑定在创建它的栈帧上,而move闭包则是独立的。例如,这意味着大体上你不能从函数返回一个非move闭包。" 这是错误的。我记得以前改过这种说法,又有人加回来了。 闭包跟栈帧没有任何关系。它仅仅创建了匿名结构体而已。所谓的“捕获”无非是这个匿名结构体初始化时的方式不同而已: by value / by ref / by mut ref
pair programming,dijkstra大法好(
统一专业术语
Rust 中的一些专业术语,对应中文怎么表述,翻译还是不翻译。比如看到 `move` 被直译成 `移动`,我觉得不太合适,还有 `box` 是否直译成盒子或箱子等等,开这个 issue 大家讨论一下这些专业术语的处理,然后整本书统一起来,以后相关的中文文档也尽量保持一致
Now since the book is in a pretty good shape, we should consider whether and how should we translate to English. The most important question is: why? What's the unique...
I have updated the Readme.md file and added English language.