Re: Returning Arrays?

2008-04-17 Thread Ilmari Vacklin
be Scala's design on this issue: <http://www.scala-lang.org/intro/variances.html>. -- Ilmari Vacklin

Re: This week's summary

2006-01-03 Thread Ilmari Vacklin
ti, 2006-01-03 kello 13:57 +, The Perl 6 Summarizer kirjoitti: > Planet Perl Six is a handy news aggregator of several Perl 6 related > sources. > > I believe that is actually Thanks for the great summary! -- wolverian <[EM

(Array) introspection

2005-12-26 Thread Ilmari Vacklin
Hi all, do we have any specifications for array introspection, or introspection of data structures (including subroutines) in general? Say I have this array: my @array (1..9 --> Int); I think I get the first bit with .shape; what about the Int? Since arrays are glorified subroutines, per

Re: Fwd: Renaming grep

2005-11-18 Thread Ilmari Vacklin
On to, 2005-11-17 at 22:44 -0500, David Storrs wrote: > 'sift' is the same number of characters as 'grep'. It's something > of a bikeshed to me whether this rename is implemented or not, though. I don't much like it - it looks like a mistyped 'shift'. Is 'filter' too long? -- wolverian <[EMAI

Renaming grep

2005-11-17 Thread Ilmari Vacklin
language elements consistently (the right kind of consistency, I hope). It's also possible to retain 'grep' as an alias (or add the new name as an alias), but generally I've found having the same thing with multiple names doesn't help at all (I'm looking at you, Ruby). -- Ilmari Vacklin <[EMAIL PROTECTED]>

Re: =>'s container and binding semantics

2005-11-07 Thread Ilmari Vacklin
d that to %hash: (and %hash:{'key'} too). Playing the devil's advocate; maybe that should be %hash.pairs, or %hash.pair:key? I don't like the : there - it's too small, and hidden %between the larger syntactical elements. > Larry -- Ilmari Vacklin

Re: Perl6 perlplexities [was: "Re: $1 change issues..."]

2005-11-04 Thread Ilmari Vacklin
On Fri, Nov 04, 2005 at 03:49:05PM +0100, Juerd wrote: > sub dosomething { $^a blah $^b } I think the $^ variables are only allowed in bare (or ->) blocks. (As a guard against san.. er, madness.) -- Ilmari Vacklin (wolverian)

S04 default { } bug?

2005-10-24 Thread Ilmari Vacklin
equivalent to: when $_ { ... } That is, $_ is always $_, so the block is always executed. (It also strikes me that using booleans in when clauses could/should be disallowed entirely.) -- Ilmari Vacklin (wolverian)

'self' and .foo (was: Re: Re(vised): Proposal to make class method non-inheritable)

2005-10-15 Thread Ilmari Vacklin
On Sat, Oct 15, 2005 at 09:49:30AM -0700, Larry Wall wrote: > On Sat, Oct 15, 2005 at 07:39:36PM +0300, wolverian wrote: > : IMHO just call it "self" (by default) and be done with it. :) > > Let it be so. Somewhat off-tangent: does this mean that .foo is always $_.foo