Japanese Language Stack Exchange is a question and answer site for students, teachers, and linguists wanting to discuss the finer points of the Japanese language. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 3 down vote accepted

You are looking for

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

and

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.