Hacker News new | ask | show | jobs
by dazmax 6020 days ago
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.
2 comments

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); }