-
Notifications
You must be signed in to change notification settings - Fork 24
翻譯const and static #33
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
base: master
Are you sure you want to change the base?
The head ref may contain hidden characters: "\u7FFB\u8B6Fconst-and-static"
Conversation
整理到一個單獨的分支中
接受了若干翻譯建議
增加譯者
更新目錄
| rare that you actually want a memory location associated with your constant, | ||
| and using a const allows for optimizations like constant propagation not only | ||
| in your crate but downstream crates. | ||
| 當您無所謂選擇哪個的絕大多數時候就選擇 `const` 。 只有極少數的情況下您需要關心 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我的理解比較像是 「如果能有選擇,那就優先選 const」(換句話說,除非非選 static 不可不然不要)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
的確是這樣意思,但是我的想法是照顧原文中“Almost always”這個詞,所以就譯出來了絕大多數時候。
16.9.1.12.47 master更新
更新譯者注
修正排版的問題
若干排版問題
|
修正了一些內容和排版問題 |
重新整理const and static