Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Phemist
· 5y ago · 0 comments
This feels luke a strawman example. I feel like list comprehension results in a much more readable example here. I think, at least.
> all(func3(a) for h,w in zip(a,b) for a in func1(h,w) if func2(a))
Comments
[–]
lauriat
5y ago
Fair enough. Readability is subjective but I understand the sentiment. Constructing list comprehensions of such long chained expressions can be rather tedious and error prone, though (as your example shows).