r/Python • • Nov 11 '08

Why the hatred for functional programming?

0 Upvotes

86 comments sorted by

View all comments

Show parent comments

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.

1

u/Wiseman1024 Nov 11 '08

From my other post:

There should be one-- and preferably only one --obvious way to do it.

I used to think this is a good idea, but I'm seeing it leads to "Pythonic", and "Pythonic" leads to a sub-optimal language.

Although that way may not be obvious at first unless you're Dutch.

I'm not worried if it's not obvious. I'm worried that it's not good.

2

u/earthboundkid Nov 11 '08 edited Nov 12 '08

This goes back to my point: if you don't like the pythonic style, don't use Python. I guess what you want is for someone to take the Python library and to adapt it to work with a Lisp-like language or something. But if that's the goal, why not just use Clojure which has the whole Java library?

1

u/Wiseman1024 Nov 12 '08 edited Nov 12 '08

I'm seriously considering writing a Lisp compiler for CPython myself. (A Lisp-1 with proper tail recursion, of course.) Something like Lython or Psyche, updated for today's Python. I think those were awesome ideas, and I'm saddened to find they're abandoned.

If only I had more time. I have to choose between doing what I want to get done, or doing what I'd like to have to do what I want to get done.

I'm also considering moving to Clojure once it's a bit more mature, or perhaps making a wilder jump to Erlang. I'm terribly attracted to obscure Schemes with object systems, but I know that's going to have no support, no community, and pretty often no documentation (heck, even Tiny-CLOS for PLT is largely undocumented).

1

u/Wiseman1024 Nov 12 '08 edited Nov 12 '08

For the love of all things good, can you explain me why would you downmod a post where I'm talking about implementing something myself? Would you rather me not release it if I finally do it? To that extent do some redditors' flamboyant fanboyism get?