Variadic named arguments
Variadic named arguments also use *
# Python: def xyz(**kvargs): ... # Perl 6: sub xyz(*%kvargs) { ... } # Perl 5: sub xyz { my %kvargs = @_; }
Python and Perl 6 | Similarities between Python and Perl 6 | #21 |
Variadic named arguments also use *
# Python: def xyz(**kvargs): ... # Perl 6: sub xyz(*%kvargs) { ... } # Perl 5: sub xyz { my %kvargs = @_; }
Copyright © 2010 http://www.pmichaud.com/2010/pres/ |