Comment by mixmastamyk
2 months ago
Your critique rests heavily on a small part of the language and specificaly the odd? trick. Python has filter available as well, but you did not use it:
ys = sorted(x for x in xs if x % 2)
# vs
ys = sorted(filter(lambda x: x % 2, xs))
ys = ", ".join(str(y) for y in ys)
I find Python a better language in total, more regular and readable, when one-liners are avoided (though "".join() is not my favorite). I do however like shell and gleam style pipelines, a bit more than fluent style.
No comments yet
Contribute on Hacker News ↗