jayli / jayli/jayli.github.com

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

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
664
Forks
98
PR merge metrics
No merged PRs in 30d

Description

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

我看了一下英文版的原文,截图如下:
![image](https://cloud.githubusercontent.com/assets/1300292/14907425/6a7a4c88-0dfb-11e6-8169-537175feb114.png)
基于JavaScript是一种弱类型的语言,我觉得翻译成“类型强制转换”或许更好一些。

Contributor guide

No contributing guide indexed for this repository

Research direction

Use Chapter 4, section 4.6 (page 49) of the Chinese translation as the entry point, and compare its wording with the English source shown in the issue. Resolve the terminology for “type coercion” and update that passage; done means the Chinese wording accurately reflects the JavaScript concept.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation
Issue type
Documentation
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.