On Mon, Aug 13, 2001 at 04:38:43PM -0700, Nathan Wiger wrote: > And allow flexible calling styles. For example, you might say: > > # import args() for argument validation > use Module::Interface qw/args/; > > sub my_func (@) { > my %args = args({ positional => [qw/name email phone/] }, @_); > } > > Which would allow you to call your function two different ways: > > my_func($name, $email, $phone); > my_func(name => $name, email => $email, phone => $phone); This is the king of thing that CGI does, and IMO is exactly what we don't want. There should be ONE calling style for each sub/method. Allowing this _will_ cause different people to use different calling styles and also possible confusion. Graham.
- Re: Perl 6 modules plan Bart Schuller
- Re: Perl 6 modules plan Bryan C . Warnock
- Re: Perl 6 modules plan Nathan Torkington
- Re: Perl 6 modules plan Kirrily Robert
- Re: Perl 6 modules plan Graham Barr
- Re: Perl 6 modules plan Johan Vromans
- Re: Perl 6 modules plan Tim Bunce
- Re: Perl 6 modules plan Graham Barr
- Re: Perl 6 modules plan Kirrily Robert
- Re: Perl 6 modules plan Nathan Wiger
- Re: Perl 6 modules plan Graham Barr
- Re: Perl 6 modules plan Tim Bunce
- RE: Perl 6 modules plan Garrett Goebel
- RE: Perl 6 modules plan Dan Sugalski
- Re: SV: SV: Perl 6 modules plan Kirrily Robert
- Re: SV: SV: Perl 6 modules plan Michael G Schwern
- RE: Perl 6 modules plan Garrett Goebel
- Re: Perl 6 modules plan Jarkko Hietaniemi
- Re: Perl 6 modules plan Tim Bunce
- RE: Perl 6 modules plan Garrett Goebel
- Re: Perl 6 modules plan Michael G Schwern