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

Maintainable Javascript中译版 第4章 4.6节(第49页),关于强制类型转换机制术语的翻译 #21

Open
pei-han opened this issue Apr 29, 2016 · 1 comment

Comments

@pei-han
Copy link

pei-han commented Apr 29, 2016

type coercion翻译成强制类型转换机制,个人认为有些不够贴切。
java等静态类型语言里面有强制类型转化机制和自动类型转换机制,分别又称为显示类型转换和隐式类型转换。
语法是这样的,例如:
double d = 1;(隐式)
int i = (double)1.0;(显示)

我看了一下英文版的原文,截图如下:
image
基于JavaScript是一种弱类型的语言,我觉得翻译成“类型强制转换”或许更好一些。

@jayli
Copy link
Owner

jayli commented May 27, 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

No branches or pull requests

2 participants