map/filter/reduce/lambda opinions and background unscientificmini-survey
Carl Banks
invalidemail at aerojockey.com
Sun Jul 3 17:00:54 EDT 2005
Christopher Subich wrote:
> Carl Banks wrote:
>
> > Listcomps et al. cannot do everything map, lambda, filter, and reduce
> > did. Listcomps are inferior for functional programming. But, you see,
> > functional is not the point. Streamlining procedural programs is the
> > point, and I'd say listcomps do that far better, and without all the
> > baroque syntax (from the procedural point of view).
>
> I've heard this said a couple times now -- how can listcomps not
> completely replace map and filter?
If you're doing heavy functional programming, listcomps are
tremendously unwieldy compared to map et al.
--
CARL BANKS
More information about the Python-list
mailing list