Named parameters: Difference between revisions
Content deleted Content added
Alextretyak (talk | contribs) Added 11l |
Added a sentence about optional arguments. |
||
Line 994:
echo subtract(5, 3) # used as positional parameters
echo subtract(y = 3, x = 5) # used as named parameters</lang>
Parameters can be made optional by providing a default argument.
=={{header|Objective-C}}==
|