Hacker News new | ask | show | jobs
by selven 6020 days ago
"Remark 2: my parenthesis-removal rule turns out not to work very well for programming :-)."

This is why everyone should learn Python.

1 comments

What? Python has way too many parentheses. Why should I have to write foo() to call foo? That's what I want to do with it 99% of the time. Ruby has it right.
Because how are you going to refer to foo (and not the result of foo) otherwise?

Haskell has it right. And Scheme and Forth of course.

It still has many improvements over C. Compare:

void func(x) { if (a == b) { do(c); do(d); } else{ do(e); } } vs:

def func(x): if a == b: do(c) do(d) else: do(e)

I write the first as

void func(int x) { if (a==b) do(c),do(d); else do(e); }