Re: Semicolons as list separators.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 06:56:00AM -0800, Larry Wall wrote: > Yes, unless it returns [[1],[2],[3]] instead. (What you have written is > context dependent.) Yup. Thanks! Oh, by the way, may I use the infix: operator for creating none() junctions? I was writing pretty-printing code for junction

Re: Semicolons as list separators.

2005-02-05 Thread Larry Wall
On Sat, Feb 05, 2005 at 04:30:58PM +0800, Autrijus Tang wrote: : So it turns out that A03 says that semicolons within "brackets" defaults : to a list-of-list builder. Curiously, it is missing from S03, and the : behaviour is not documented in detail. That's because it's still a bit hand-wavey. :

Semicolons as list separators.

2005-02-05 Thread Autrijus Tang
On Sat, Feb 05, 2005 at 02:08:32PM +0800, Autrijus Tang wrote: > Here's another quick question: In S03 zip() is used like this: > > for zip(@names, @codes) -> $name, $zip { ... } > > But in S04 it becomes: > > for zip(@a;@b) -> $a, $b { ... } > > Why semicolon? Is it a special form?