r/Python • • Nov 11 '08

Why the hatred for functional programming?

0 Upvotes

86 comments sorted by

View all comments

5

u/Wiseman1024 Nov 11 '08 edited Nov 11 '08

Okay, I don't think I need to tell why I'm asking this. While Python supports functional programming to a reasonable extent, there's a widespread stubborn hatred of functional programming and anything related to it in the Python community (probably starting with the BDFL), and any proposals for extending Python into something more useful for functional programming (without taking out any of the other ways to use Python, of course, that's the good thing about multi-paradigm languages) is received with ruthless hostility and perceived as an attack against Python.

The Python community is generally a good one (especially compared to others), yet this generalized hatred for functional programming and anything related to it seriously turns me off. While Python is currently my overall favourite programming language (considering the quality of the standard and non-standard libraries, support, and features), I'm currently considering putting my effort and time investments somewhere less hostile to functional programming.

Hostility to functional programming is a form of hostility to abstraction, theoretical correctness and cleanliness. I hope I'm wrong, but this seems like pulling the PHP way. Consistently meeting proposals such as tail call elimination with nothing short of "that's liek difficult to understand d00d ha ha no freaking way" doesn't say much about the health of this community; in fact it looks like something straight out of the average PHP documentation comment.

6

u/sard Nov 11 '08 edited Nov 11 '08

that's the good thing about multi-paradigm languages

I don't think the BDFL is interested in creating a multi-paradigm language. He's much more interested in a 'one obvious consistent Pythonic way of doing everything' language, and that one way historically hasn't been functional.

3

u/Wiseman1024 Nov 11 '08

Then instead of getting the best possible language in its domain, he'll get the most Pythonic language, for an arbitrary and sometimes bizarre definition of Pythonic.

5

u/earthboundkid Nov 11 '08

There should be one-- and preferably only one --obvious way to do it.
Although that way may not be obvious at first unless you're Dutch.

3

u/mycall Nov 11 '08

Don't languages that have more than one way to do something appeal to more people and thus service more requirements and applications in the long run?

3

u/earthboundkid Nov 11 '08

No language can be perfect for everyone. I tried to make Ruby perfect for me, but maybe it's not perfect for you. The perfect language for Guido van Rossum is probably Python.

— Matz

-1

u/Wiseman1024 Nov 12 '08

Wise. But then:

[...] Larry Wall, who is my hero actually [...]

ಠ_ಠ

2

u/[deleted] Nov 12 '08

Sometimes, languages that have more than one way to do it suck. Perl, for example.

My opinion, but really most of this discussion here has been spiraling downward into the dead-horse-beaten hellhole of language flamewars. Plus, I do appreciate Perl for what it did well and the positive impact it's had on other languages, like Python.