1

In programming, a function can have optional parameters, for instance getTemperature() could have an optional parameter "Unit" to say I want the temperature in Kelvin for instance. By default, when specifying no parameter, it would be in Celsius.

How to say optional parameters in Japanese?

ALC says オプションのパラメータ:

Both required and optional parameters are listed.
必須なパラメータおよびオプションのパラメータを列挙します。

But I believe they are wrong, and their translation has a different meaning.

1 Answer 1

3

You are looking for

必須(の/な)引数 => required parameter(s).

and

任意(の/な)引数 => optional parameter(s)

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .