Named parameters: Difference between revisions

Content deleted Content added
Thundergnat (talk | contribs)
Rename Perl 6 -> Raku, alphabetize, minor clean-up
SqrtNegInf (talk | contribs)
m →‎{{header|Raku}}: Fix comment: Perl 6 --> Raku
Line 1,412: Line 1,412:
{{works with|Rakudo|#22 "Thousand Oaks"}}
{{works with|Rakudo|#22 "Thousand Oaks"}}


Perl 6's support for optional parameters is much like Python's. Consider this declaration:
Raku's support for optional parameters is much like Python's. Consider this declaration:


<lang perl6>sub funkshun ($a, $b?, $c = 15, :$d, *@e, *%f) {
<lang perl6>sub funkshun ($a, $b?, $c = 15, :$d, *@e, *%f) {