Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

"Python has some functional capabilities, but in my experiences with Python devs, those are little used and even shunned. Imperative, mutating loops are the Python way; and to suggest otherwise is to hear "But why would I need that? This (long functions with mutations everywhere and loops) is fine.""

Thank God I'm not stuck with low talent clowns like that.

Writing highly functional python isn't hard anymore, especially making use of mypy strong types, data classes, generator expressions/etc.

Using dict unpacking combined with things like list comps is a really simple way to get trad Python devs getting more functional. My team is a bunch of experienced Python devs who happen to live Haskell/Clojure/etc so I guess that makes things easier.



> Thank God I'm not stuck with low talent clowns like that

Woah! Python’s a multiparadigm language. Using loops and mutation is a perfectly fine way to write Python code. For sure there are some kinds of code that lend themselves to a functional style, but equally, there are other cases where mutation is the more straightforward approach.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: