Skip to content

(Update scala-for-java-programmers.md) Fix pr#1405 for zh-cn with some polish. #1406

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

Merged
merged 2 commits into from
Jul 18, 2019

Conversation

dongxuwang
Copy link
Member

No description provided.

@@ -87,7 +87,7 @@ Scala 的导入表达式跟 Java 非常像,但更为强大。如第一行,

## 一切都是对象

Scala 是一个纯粹的面向对象语言,这句话的意思是说,*所有东西*都是对象,包括数字、函数。因为 Java 将基本类型 (如 `boolean` 与 `int` ) 跟参照类型分开,而且没有办法像操作变量一样操作函数,从这角度来看 Scala 跟 Java 是不同的
Scala 是一个纯粹的面向对象语言,意即包括数字、函数在内的*一切*都是对象。这跟 Java 不同,因为 Java 的基本类型 (如 `boolean` 与 `int` ) 和引用类型是有区别的
Copy link
Member

Choose a reason for hiding this comment

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

意即包括数字、函数在内的一切都是对象

nit: how about

意即所有ㄧ切都是对象,而這包含了数字和函数

Copy link
Member

Choose a reason for hiding this comment

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

I think 包括数字、函数在内的一切都是对象 is more in line with Chinese customs.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks for the review. I personally prefer to make the translation sound smoother to the target reader, which might lose some words order literally.

@dongxuwang dongxuwang merged commit 62f4cb3 into scala:master Jul 18, 2019
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.

3 participants