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

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

Open
vangie opened this issue Apr 14, 2017 · 8 comments
Open

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

vangie opened this issue Apr 14, 2017 · 8 comments

Comments

@vangie
Copy link

vangie commented Apr 14, 2017

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

statement

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

@panxl6
Copy link
Owner

panxl6 commented Apr 14, 2017 via email

@panxl6
Copy link
Owner

panxl6 commented Apr 16, 2017

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

@andurils
Copy link

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

@vangie
Copy link
Author

vangie commented May 25, 2017

@panxl6
Copy link
Owner

panxl6 commented May 26, 2017

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

@vangie
Copy link
Author

vangie commented May 26, 2017

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

@shawnbai
Copy link

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

@honganan
Copy link

honganan commented Aug 1, 2019

interesting

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

5 participants