Better HN
topnewbestaskshowjobs
Log inSign up

quietwhisper

6 karma · joined Apr 4, 2016 (10y ago) · 5 submissions

Submissions

comment 10y ago · link · parent

Python has a very strong set of conventions, beliefs about what 'good python' looks like/what is in the spirit of the language. It's a common term in the python community.

comment 10y ago · link · parent

how can you come down hard on the side of one when you've never experienced the other?

I'm from a non-list-comprehension background too, but recently started working a lot in a large python codebase, and have found the dict/list comprehensions to be beautiful. I'm a huge fan. It's a shame lambda syntax is not the best and it's generally crippled, but comprehensions are a great 80/20 compromise for handling most cases very cleanly.

comment 10y ago · link · parent

Sounds great in theory. Problem is if you need a lambda that isn't a single expression, you then have to name it. Welcome to the conversation.

comment 10y ago · link · parent

I know (and bemoan) that lambdas can only have a single expression returned, but can't you just use a named function? (Not as nice, I agree, but doesn't put a hard limit on FP in python.)

comment 10y ago · link · parent

Sorry, what statistics?

http://www.theatlantic.com/international/archive/2015/09/wel...

http://www.npr.org/sections/money/2013/10/25/240590433/what-...