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@gmail.com To: The general-purpose Squeak developers list squeak-dev@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
squeak-dev@lists.squeakfoundation.org