News for hackers. Stuff that matters.

quietwhisper

Re:Coconut – Pythonic functional programming language on Thursday June 23, 2016 @06:22PM (#11964723)
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.
Re:Coconut – Pythonic functional programming language on Thursday June 23, 2016 @06:17PM (#11964705)
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.

Re:Coconut – Pythonic functional programming language on Thursday June 23, 2016 @06:14PM (#11964695)
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.
Re:Coconut – Pythonic functional programming language on Thursday June 23, 2016 @05:29PM (#11964449)
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.)