kotlin-in-action icon indicating copy to clipboard operation
kotlin-in-action copied to clipboard

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

Open vangie opened this issue 8 years ago • 8 comments

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

statement

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

vangie avatar Apr 14 '17 02:04 vangie

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

On Fri, Apr 14, 2017 at 10:43 AM, Vangie Du [email protected] 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 avatar Apr 14 '17 14:04 panxl6

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

panxl6 avatar Apr 16 '17 15:04 panxl6

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

andurils avatar May 24 '17 13:05 andurils

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

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

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

vangie avatar May 25 '17 17:05 vangie

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

panxl6 avatar May 26 '17 01:05 panxl6

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

vangie avatar May 26 '17 01:05 vangie

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

shawnbai avatar May 26 '17 01:05 shawnbai

interesting

honganan avatar Aug 01 '19 13:08 honganan