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

《编写高质量的 Swift 代码》翻译完成 #99

Merged
merged 3 commits into from
Jan 23, 2016
Merged

《编写高质量的 Swift 代码》翻译完成 #99

merged 3 commits into from
Jan 23, 2016

Conversation

joyking7
Copy link
Contributor

@joyking7 joyking7 commented Jan 4, 2016

因为自己开发水平不够高,然后这篇文章是针对编译器和标准库开发者书写,所以有些地方存在硬翻的情况,另外翻译的350行中addressor不知道怎么翻译合适,就直接保留了,还请大家帮我多改下^_^。

@joyking7 joyking7 mentioned this pull request Jan 4, 2016
solve a specific temporary limitation of the compiler or the language. Many of
the recommendations in this document come with trade offs for things like
program runtime, binary size, code readability, etc.
这篇文章中的一些技巧可以帮助提高你的Swift程序质量,并且可以减少代码中的容易出现的错误,使代码更具可读性。显式地标记出最终类和类的协议是两个显而易见的例子。然而,文章中描述的一些技巧是不符合规定的,扭曲的,仅仅解决由于编译器或者语言暂时限制的问题。文章中的许多建议来自于多方面,例如程序运行时,二进制大小,代码可读性等等。
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

最后一句:“文章中的建议来自多方面的权衡”

@nathanwhy
Copy link
Contributor

其他大致没什么问题

@Glowin
Copy link
Member

Glowin commented Jan 15, 2016

@walkingway 请问这篇文章你有修改意见么?

@walkingway
Copy link
Member

@Glowin 抱歉,我周末审核完

if you have carefully reviewed that your code is safe with respect to integer
overflow and type casts.
- ``-Onone``: 这是为正常开发准备,它执行最少的优化并保留所有调试的信息。
- ``-O``: 是为大多数生产代码准备,编译器执行积极的优化,可以很大程度上改变提交代码的类型和数量。调试信息将被省略,但是会有损耗。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

『调试信息将被省略,但是会有损耗。』应改为:『调试信息同样会被输出,但是有损耗。』

instances that contains the addresses of the type's methods. Dynamic
dispatch proceeds by first looking up the table from the object and then
looking up the method in the table.
.. [1] 虚拟方法表或者'vtable'是一种被包含类型方法地址实例引用的类型特定表。发送动态进程时,首先要从对象中查找这张表,然后在表中查找方法。
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

『发送动态进程时 』改为 『动态分发执行时』

@walkingway
Copy link
Member

改了一大堆,注意中英文数字直接要有空格,其他没问题了,作者再上来读一遍吧

@nathanwhy
Copy link
Contributor

审核很细致,受教了

@joyking7
Copy link
Contributor Author

刚刚考完试,然后很感谢两位对这篇翻译的审核,果然自己还有很多东西要学习,稍后就会将修改的文章发上来

@Glowin
Copy link
Member

Glowin commented Jan 23, 2016

@iThreeKing 翻译的很上心, @nathanwhy @walkingway 两位审核译者也超仔细,谢谢了。

Glowin added a commit that referenced this pull request Jan 23, 2016
《编写高质量的 Swift 代码》翻译完成
@Glowin Glowin merged commit 7016463 into xitu:master Jan 23, 2016
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

Successfully merging this pull request may close these issues.

4 participants