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

The forced indentation of 3000

Name: Anonymous 2007-08-31 17:26 ID:FWVhjd5S

It's pretty neat. Thread over?

Name: Anonymous 2007-09-01 12:38 ID:GY3x/8Oz

>>7
lambda x, y, z: y if x or z looks like a function I might need to pass one day, but whether you can think of a case where you'd need to pass something or not is not valid justification for making a separate poor brother of expressions with a separate, incompatible syntax (one more thing to learn). Readability counts, but statements shouldn't be necessary to make the syntax clearer; the expression syntax should be clear already, and if it's not, we have a problem for which statements are a nigger rig of a solution that will only make things worse.

The unnecessary, arbitrary, prejudicial separation between expressions and these "statements" artifacts is what gave Python most of the few problems it has. For example, lambda's limited usefulness, the difference between lambda and def (which was certainly uncalled for), the need for the and-or hack and now the ugly if-else hack, the misuse of list comprehensions (they are great! But sometimes people use them instead of fors and ifs because they are expressions), the inability to create yourself a do..while loop that's missing in the language...

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