Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

建议将 crate 翻译成「单元包」 #35

Open
Integral-Tech opened this issue May 25, 2023 · 1 comment
Open

建议将 crate 翻译成「单元包」 #35

Integral-Tech opened this issue May 25, 2023 · 1 comment

Comments

@Integral-Tech
Copy link
Contributor

crate 是 Rust 的基本编译单元,package 提供一系列功能的一个或者多个 crate。
因此个人认为 crate 翻译成「单元包」比较合适。

参考资料:《Rust 权威指南》

@zuoxinyu
Copy link
Contributor

提议一个翻译原则:

  1. 非 Rust 独有的东西,如类型系统、语法、语义、异步等语言特性,尽量参考现有的其它主流译法,如「生命周期」,虽然不是完全准确,但已经是 de facto 的译法。
  2. Rust 独有的机制,如 Cargo 和相关的包管理中的名词以及 Rust 语言本身,直译没有意义的词,倾向于不译。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants