develooper Front page | perl.perl6.language | Postings from June 2005

Re: sub my_zip (...?) {}

Thread Previous | Thread Next
Luke Palmer
June 16, 2005 15:28
Re: sub my_zip (...?) {}
Message ID:
On 6/16/05, Larry Wall <> wrote:
> Or maybe a splat
>     @foo[*]
> Or go with the parens with something in them to indicate the positive
> absence of something.
>     @foo[(*)]
> Anyone else want to have a go at this bikeshed?

You know, before I read this part of the message, I was thinking
precisely that.  Nullary splat should do it, so that @foo[*] will
work.  Unary splat would of course get our favor if it can be
interpreted that way, but in cases like:


It is unambiguous, and you can always say (*) to disambiguate.  I like
the look of that too.


Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About