Re:Rich Hickey: Reducers - A Library And Model For Collectio...
by jules on Tuesday May 08, 2012 @05:54PM
(#3945964)
In the reducible model as described, it's not possible to implement some operations efficiently, like map on multiple collections (this is called zipWith in Haskell). Also, if you filer/map/etc a function over a reducible and then use the resulting reducible twice, it will cause the filter/map/etc to be performed twice. This can lead to performance surprises, for example it can turn a linear time algorithm into an exponential time algorithm in some cases. Thus this is not a drop-in replacement for seqs, although it can probably cover most uses more efficiently.
[ Parent
| on HN ]
There are no comments on this comment yet.