pipe

Jason Johnson jason.johnson.081 at gmail.com
Sun Aug 26 15:31:47 UTC 2007


On 8/25/07, Fabio Filasieno <fabio.filasieno at gmail.com> wrote:
>
> a sequence of filter, map, fold, zip, ... it's extreamly common in any case
> you have to do quite some collection manipulation.

This kind of programming does come up often from folks who have a lot
of functional programming experience (myself included).  Sometimes you
have an ordered collection and you need to do a series of
transformations on it to get the set you want.  And it does get
annoying to have to keep piling on the parenthesis.

But one reason others aren't sympathetic to this is probably because
of the nature of Smalltalk.  Most of the methods don't have that many
statements.  If you use the language for a while you will probably
also find that once you end up with several statements grouped in the
parenthesis that you could in fact use a part of those
transformations/reductions/filtering somewhere else, and therefor
should break some of it out to other methods.



More information about the Squeak-dev mailing list