panxl6 / kotlin-in-action

《kotlin实战》翻译
246 stars 82 forks source link

statement 应该翻译成“语句”而不是“声明” #1

Open vangie opened 7 years ago

vangie commented 7 years ago

P25 页,“在 Java 中,所有的控制结构都是声明”,读起来不通。

statement

*['steitmәnt] n. 陈述, 指令, 声明 【计】 程序语句; 语句 【医】 叙述, 陈述; 报告书 【经】 声明, 报表, 清单

panxl6 commented 7 years ago

感谢您的关注,我正在重新检查。

On Fri, Apr 14, 2017 at 10:43 AM, Vangie Du notifications@github.com wrote:

P25 页,“在 Java 中,所有的控制结构都是声明”,读起来不通。

statement

*['steitmәnt] n. 陈述, 指令, 声明 【计】 程序语句; 语句 【医】 叙述, 陈述; 报告书 【经】 声明, 报表, 清单

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/panxl6/Kotlin-in-action/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AHWtK8hNUs5wqiBevE-5RNCPiYgwNhh2ks5rvt1UgaJpZM4M9Z9n .

panxl6 commented 7 years ago

你好,我翻阅了oracle的java文档。 Oracle对于Statement的解释为: Statements are roughly equivalent to sentences in natural languages. 所以,我个人认为翻译为声明是符合规范的。

andurils commented 7 years ago

计算机语境中 statement 是作为 “声明 ” 的较多,直译“语句” 不妥

vangie commented 7 years ago

请问下面链接的标题如何翻译?

https://stackoverflow.com/questions/23227486/difference-between-declaration-statement-and-assignment-statement-in-c

https://www.thoughtco.com/declaration-statement-2034076

panxl6 commented 7 years ago

楼上的这个语境翻译为“语句”较为合适。为了避免误导,已经在翻译中备注上原文了。

vangie commented 7 years ago

@panxl6 在非计算机术语场景才翻译为“声明”,技术类术语翻译为“语句”。C 系语言中,声明和语句是两个不同概念。也和同事讨论过,得到的反馈是一致的。而且用“statement 语句”在 Google 里搜索,返回结果基本是计算机类的,“statement 声明”返回结果多为非计算机类的。

shawnbai commented 7 years ago

c语言中 声明是 Declaration 定义是 Definition 表达式是 Expression

honganan commented 5 years ago

interesting