On Wed, Mar 16, 2005 at 11:46:46AM -0700, Luke Palmer wrote: : Markus Laire writes: : > Larry Wall wrote: : > >Since it's not a problem for syntax that can be recognized at compile : > >time, your slice above might be allowed if you "declare" the thunks : > >with curlies: : > > : > > @3d_slice = @array[ {!($_ % 2)}; 0..9:3; {?test($_)} ]; : > > : > : > How does the compiler know that those ';'s within curlies are : > List-of-lists separators, and not statement-separators? : : Er, they're not inside curlies. The curlies are inside them. But I : agree that it's visually confusing.
Well, in any event, we'll probably encourage people to use reserve subscript notation for ordinary values, and use some .slice-like method for the fancier stuff. Larry