Re: L2R/R2L syntax (was Re: Everything is an object.)

2003-01-08 Thread Damian Conway
Trey Harris wrote: I love this. And any class could override the ~ operator, right? Right. I suppose it could be done like arithmetic overloading, if you define both ~ (I'm being pointed at from the right) and ~ (I'm being pointed at from the left) in your class then Perl will use

L2R/R2L syntax (was Re: Everything is an object.)

2002-12-19 Thread Michael Lazzaro
On Thursday, December 19, 2002, at 08:35 AM, Brent Dax wrote: # @a.grep( {...} ) # .map( {...} ) # .sort; If we put in my idea of longest possible signature when there's no parens and a low-precedence 'dot' operator, we could do this without the parens. *ducks* :-) I

Re: L2R/R2L syntax (was Re: Everything is an object.)

2002-12-19 Thread Luke Palmer
Date: Thu, 19 Dec 2002 10:42:27 -0800 From: Michael Lazzaro [EMAIL PROTECTED] Honestly, I still don't see what's so evil about R2L as: @out = sort given map {...} given grep {...} given @a; It seems to solve all the issues with not needing parens, not requiring {...} to magically

<    1   2