Re: Quick question: parens vs subroutine parameter

2005-05-13 Thread TSa (Thomas Sandlaß)
Larry Wall wrote: : Void context still exists and is not a form of singular or plural : context. Perhaps this should be called nullar context, although void : context works equally well for me and is not confusing because we have : no Void type. Nice, without Void we don't need the double headed ps

Re: Quick question: parens vs subroutine parameter

2005-04-20 Thread Larry Wall
On Wed, Apr 20, 2005 at 11:28:23PM +0200, Juerd wrote: : Autrijus asked me to summarize here what I said on IRC #perl6, and ask : Larry for another "that's all correct". : : I've rephrased everything as facts/assumptions. : : Array context, as provided by a signature of "Array $foo", is still : a

Re: Quick question: parens vs subroutine parameter

2005-04-20 Thread Juerd
Autrijus asked me to summarize here what I said on IRC #perl6, and ask Larry for another "that's all correct". I've rephrased everything as facts/assumptions. Array context, as provided by a signature of "Array $foo", is still a form of scalar context, even though Array.isa(List). Array is a

Re: Quick question: parens vs subroutine parameter

2005-04-20 Thread Larry Wall
On Wed, Apr 20, 2005 at 10:23:14PM +0200, Juerd wrote: : Autrijus Tang skribis 2005-04-21 4:19 (+0800): : > So, following up on the Parens handling, are these two equivalent? : > # Assuming &is has the parameter signature (Str, Str, Str) : > is((1,2), (3,4), "hey"); : > is([1,2], [3,4]

Re: Quick question: parens vs subroutine parameter

2005-04-20 Thread Juerd
Autrijus Tang skribis 2005-04-21 4:19 (+0800): > So, following up on the Parens handling, are these two equivalent? > # Assuming &is has the parameter signature (Str, Str, Str) > is((1,2), (3,4), "hey"); > is([1,2], [3,4], "hey"); I think so. > What happens if &is is of type (Any, An

Quick question: parens vs subroutine parameter

2005-04-20 Thread Autrijus Tang
So, following up on the Parens handling, are these two equivalent? # Assuming &is has the parameter signature (Str, Str, Str) is((1,2), (3,4), "hey"); is([1,2], [3,4], "hey"); What happens if &is is of type (Any, Any, Str)? Thanks, /Autrijus/ pgp0OW38SoE0X.pgp Description: PGP sign