memrootじしょ
英和翻訳
Type coercion
call for submissions
Digital Signal
dynamical systems
Dacryoadenitis
future value
rush into action
dynamic positioning
blended learning
can be better
Type coercion
/taɪp koʊˈɜːrʒən/
タイプ コアージョン
1.
データ型の強制変換、または自動的・暗黙的な型変換。
プログラミングにおいて、あるデータ型の値が自動的または暗黙的に別のデータ型に変換される現象。特に、異なるデータ型の値が操作される際に発生し、意図しない結果を招くこともあるため、注意が必要です。
In
JavaScript,
`1
+
"2"`
results
in
`"12"`
due
to
type
coercion.
(JavaScriptでは、`1 + "2"` は型強制により `"12"` になります。)
In JavaScript
JavaScriptにおいて
`1 + "2"`
数値の1と文字列の"2"を足し合わせる演算
results in
結果として~になる
`"12"`
文字列の"12"
due to
~のために、~が原因で
type coercion
型強制(型変換)
Explicit
type
casting
is
often
preferred
over
implicit
type
coercion
for
clarity.
(明確さのために、明示的な型キャストは暗黙的な型強制よりもしばしば好まれます。)
Explicit type casting
明示的な型キャスト(開発者がコードで明示的に型を変換すること)
is often preferred
しばしば好まれる
over
~よりも
implicit type coercion
暗黙的な型強制(システムが自動的に型を変換すること)
for clarity
明確さのために、分かりやすさのために
Understanding
type
coercion
is
crucial
for
avoiding
unexpected
behavior
in
weakly
typed
languages.
(型強制を理解することは、弱い型付け言語での予期せぬ動作を避けるために重要です。)
Understanding type coercion
型強制を理解すること
is crucial
極めて重要である
for avoiding
避けるために
unexpected behavior
予期せぬ動作
in weakly typed languages
弱い型付け言語(型チェックが緩いプログラミング言語)において
関連
type casting
type conversion
data type
weak typing
strong typing