Re: lvalue reverse and array views

2005-11-19 Thread Daniel Brockman
Juerd <[EMAIL PROTECTED]> writes: > I think something like > > my @bar := reverse @foo; > > would be very useful. Insert an element between positions 1 and 2, and > the original @foo array gets them between positions -3 and -2. That would be cool. The concept is reminiscent of using a change

Re: \x{123a 123b 123c}

2005-11-19 Thread Larry Wall
On Sun, Nov 20, 2005 at 01:26:21AM +0100, Juerd wrote: : Ruud H.G. van Tol skribis 2005-11-20 1:19 (+0100): : > Maybe : > "\x{123a 123b 123c}" : > is a nice alternative of : > "\x{123a} \x{123b} \x{123c}". : : Hmm, very cute and friendly! Can we keep it, please? Please? We already ha

Re: \x{123a 123b 123c}

2005-11-19 Thread Juerd
Ruud H.G. van Tol skribis 2005-11-20 1:19 (+0100): > Maybe > "\x{123a 123b 123c}" > is a nice alternative of > "\x{123a} \x{123b} \x{123c}". Hmm, very cute and friendly! Can we keep it, please? Please? Juerd -- http://convolution.nl/maak_juerd_blij.html http://convolution.nl/make_j

\x{123a 123b 123c}

2005-11-19 Thread Ruud H.G. van Tol
Maybe "\x{123a 123b 123c}" is a nice alternative of "\x{123a} \x{123b} \x{123c}". -- Grtz, Ruud

lvalue reverse and array views

2005-11-19 Thread Juerd
In Perl 5, for (reverse @foo) { $_ = $_ + 1 } actually works. But reverse does not return lvalues, which means that: (reverse @foo) = map $_ + 1, @foo; does not do the same thing, but actually throws an exception. I think, but haven't confirmed, that the for-reverse is an optimization

Re: Classification syntax [Was: Renaming grep]

2005-11-19 Thread Yuval Kogman
On Fri, Nov 18, 2005 at 11:36:33 -0800, Larry Wall wrote: > If we had some kind of partitioning operator, it'd probably be generalized > to sorting into bins by number, where 0 and 1 are degenerate cases for > booleans. But since we'd almost certainly make the general form > > (@bin0, @bin1,

Re: Private behavior in roles

2005-11-19 Thread Larry Wall
On Thu, Nov 17, 2005 at 01:55:31PM -0800, Ovid wrote: : In http://perlmonks.org/?node_id=509413 (in response to : http://perlmonks.org/?node_id=509256), Rob Kinyon wrote that in his : understanding of Perl 6 Roles, anything a role can do the class "doing" : the role should also be able to do. : :

Re: Renaming grep

2005-11-19 Thread Dan Kogai
On Nov 19, 2005, at 13:08 , Chip Salzenberg wrote: On Sat, Nov 19, 2005 at 05:46:51AM +0200, Ilmari Vacklin wrote: I don't much like it - it looks like a mistyped 'shift'. Is 'filter' too long? I usually avoid P6L discussions, but: GNU Make has "filter" and "filter-out", and I've always fo