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

Python has FP elements, such as the list comprehensions you mention, but overall I wouldn’t say it’s an FP language.

To continue that example, Python list comprehensions are not very powerful compared to that feature in FP languages, since Python is not expression orientated.

I would classify Python as imperative with FP and OOP elements.

Python is of course a slow language. My point is that writing in a functional style will give you slow code even by Python standards! Good FP languages assume you will write in that style and optimise for that use-case.



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

Search: