実際にどう使われますか?
下の例文を通して、それぞれの単語がどのような状況で使われるのか学んでみましょう!
nonmutable
例文
In Java, the final keyword is used to declare a nonmutable variable. [nonmutable: adjective]
Java では、final キーワードを使用して変更不可能な変数を宣言します。[不変:形容詞]
例文
The terms of the contract are nonmutable and cannot be changed without mutual agreement. [nonmutable: adjective]
契約条件は変更不可能であり、相互の合意なしに変更することはできません。[不変:形容詞]
immutable
例文
The laws of physics are immutable and do not change over time. [immutable: adjective]
物理法則は不変であり、時間の経過とともに変化しません。[不変:形容詞]
例文
In Python, tuples are immutable data structures that cannot be modified once they are created. [immutable: adjective]
Python では、タプルは不変のデータ構造であり、一度作成されると変更できません。[不変:形容詞]
追加で知っておくといいこと
どっちの方がよく使われますか?
Immutableは日常の言語でnonmutableよりも一般的に使用されており、コンピュータープログラミング、法律、哲学など、さまざまな分野で使用できます。
どっちの方がよりフォーマルですか?
nonmutableとimmutableはどちらも正式なコンテキストで使用できますが、nonmutableはコンピュータープログラミングに固有であり、より技術的または専門的であると認識される場合があります。