6

excerpt:

A default parameter is a function or method parameter that has a default value provided to it. If the user does not supply a value for this parameter, the default value will be used. If the user does supply a value for the default parameter, the user supplied value is used.

excerpt:

A default argument is a value passed to a certain parameter of a function if the user does not explicitly supply a value for that parameter.

Both of these refer to the same concept of being able to define default values for function arguments that are used if the user does not supply them.

These tags should be merged.

6
  • @RyanM I am not sure why you replaced the feature-request with support. Oct 9 at 18:09
  • Sounds right to me; I'll do this in a week or so if no one objects. Also, input is welcome on which should be the canonical tag... normally I would pick the larger one, but they differ in size by exactly one question...
    – Ryan M Mod
    Oct 9 at 18:09
  • "I am not sure why you replaced the feature-request with support." See the first bullet point at meta.stackoverflow.com/tags/synonym-request/info. Creating synonyms technically does not require moderator assistance, but in practice it does, because the user-level synonym-creation system is ... hard to use.
    – Ryan M Mod
    Oct 9 at 18:10
  • @RyanM Unless I happen to have enough upvoted answers in that tag. Which I usually don't. Oct 9 at 18:11
  • 1
  • Neither of these is really an accurate term. I would say it should be called default-parameter-values. Oct 10 at 5:12

0

You must log in to answer this question.

Browse other questions tagged .