Named parameters: Difference between revisions

Content added Content deleted
(Rename Perl 6 -> Raku, alphabetize, minor clean-up)
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) {