Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bad things about python

Name: Anonymous 2007-02-02 12:05

ITT we list all the bad things about python.

I know it has good points as well but thats not for this thread. thanks.

Name: Anonymous 2007-02-06 18:03

>>43
Forced indentation did not prevent making do..while or repeat..until loops. It's just that Guido thought it unnecessary, or rather, he was being a dick so he challenged people to enumerate places where it'd be clearly better than while in the standard library, then he'd add it.

As for lambda, you can have multiline lambdas BTW:



l = (lambda x, y:
    x + y) #Multiline lambda



The real problem is multi-statement lambdas, which you don't have. The best you can do is implement something like C's comma operator, e.g.



def last(*p):
    return p[-1]



>>45
Tru.dat, the only problem with def is it's not an expression like JavaScript's function; you have to forcefully name it into a temporary variable (which you may reuse). For that purpose, I use underscore:



def _(stuff):
    lol forced indenting wah wah wah
do_stuff(1, 2, 3, _)



>>50
No, you're the fail, and your post did not make sense. Forced indentation is harder to fail than braces, unless you are not used to indenting your code, in which case you suck.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List