Hacker News new | ask | show | jobs
by matsemann 988 days ago
Same. I struggle to write concise and complex code in Python. I often think of a problem in a functional sense, and would like to just map/filter/reduce and pipe my way out of it. With python I feel constrained by what the language gives me. Useless lambdas, list comprehensions that quickly become hard to grok, stdlib and syntax that forces you to wrap things like reduce(map(filter(iter))) instead of iter | filter | map | reduce.

I'm always in awe when I see the Advent of Code solutions from Norvig in Python, they often seem so elegant. But my head isn't wired to think of the problems that way.