Re:Anti-Patterns in Python Programming
by thinkpad20 on Wednesday July 09, 2014 @11:09AM
(#8010011)
I agree. I try to use list comprehensions when I can, but the fact is that as soon as you have to do any sort of logic in your map, it quickly gets unwieldy. I'd much rather use a functional style in many of these cases, but python's syntax and crummy lambdas (as compared to what would be natural to do in say JavaScript or Ruby), means that in the majority of cases I find myself using an imperative style.
[ Parent
| on HN ]
There are no comments on this comment yet.