On Wed, 2005-05-04 at 08:36, Larry Wall wrote:
> I propose that reduce become a metaoperator that can be applied to
> any binary operator and turns it syntactically into a list operator.

Sounds very cool! I like it... but...

>     $sum = ®+ @array;

I don't think you can do that workably. In the font I use, I was
scratching my head asking "how does @ work there?!" Yep, I can't tell ®
and @ apart without getting REAL close to the screen.

I also deeply dislike \\//, but I can't tell you why rationally. :-/

That said, let me try to be helpful, and not just complain:

        $sum = (+) @array;

I've not thought through all of the implications to the parser, but I
think this works, and it certainly ends up looking very mnemonic for
what you're trying to do!

Are there any infix:op where there is also a standalone op that would
confuse usage inside ()? If so, would it be too big a deal to
special-case those?

-- 
Aaron Sherman <[EMAIL PROTECTED]>
Senior Systems Engineer and Toolsmith
"It's the sound of a satellite saying, 'get me down!'" -Shriekback


Reply via email to