Anonymous user
Named parameters: Difference between revisions
Added a sentence about optional arguments.
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}}==
|