pipe

Benoit St-Jean bstjean at yahoo.com
Mon Aug 27 00:37:28 UTC 2007


Oh Vassili!  Simple, effective and elegant as usual...  

Have an ice-cold beer!  :)
 
-----------------
Benoit St-Jean
Yahoo! Messenger: bstjean
Blog: lamneth.wordpress.com
A standpoint is an intellectual horizon of radius zero.
(Albert Einstein)

----- Original Message ----
From: Vassili Bykov <smalltalkbigot at gmail.com>
To: The general-purpose Squeak developers list <squeak-dev at lists.squeakfoundation.org>
Sent: Sunday, August 26, 2007 8:35:07 PM
Subject: Re: pipe

Looking back at the number of messages in this thread, I figured I'd
contribute a straw man implementation instead of adding to the
polemics. The operator used for piping is :>, i.e.

  (1 to: 10) select: [:x | x odd] :> collect: [:x | x factorial]

which doesn't conflict with any syntactically valid messages, is
reasonably suggestive and easy to type as both characters are shifted
and are close to each other. Most importantly, it looks like a smiley
thus improving user-friendliness.

Of course, it's quite easy to change the Scanner to recognize pretty
much anything else as the #pipe token.

Cheers,

--Vassili




-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20070826/3ad2c1ae/attachment.htm


More information about the Squeak-dev mailing list