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

my critique of python

Name: Steve 2017-02-09 14:32

forced indentation of code is a bad idea
padding your function names with underscores looks ugly

let me know what you think

this critique is copyright © by Steve

Name: Anonymous 2017-02-09 15:41

What do the underscores mean in python anyway?

Name: Steve 2017-02-09 16:03

i agree it just doesn't sense

Name: Anonymous 2017-02-09 16:09

if __name__ == "__anus__":
'\n\t'.join(["indent:", "my", "anus"])

Name: Steve 2017-02-09 17:51

>>4
this is how they actually write in p y t h o n

Name: Anonymous 2017-02-09 20:40

It's not just the forced indentation, it enforces weird syntactic rules that effectively eliminate the composability of its constructs.
A striking example are if statements: when you write it in the REPL you can clearly see that it's an expression, because it returns its result, but the parser recognizes it as a statement and won't allow you to use its return value!

Name: Anonymous 2017-02-09 21:21

but the parser recognizes it as a statement and won't allow you to use its return value!
What did he mean by this?

Name: Anonymous 2017-02-10 3:03

>>7
That assigning a statemenet to a variable is a syntax error.

Name: x153@live.com 2017-02-10 5:57

'\n\t'.join(["indent:", "my", "anus"])
if __name__ == "__anus__":

Name: Anonymous 2017-02-10 7:24

>>6
to be fair, directly returning the result of an if isn't allowed in most procedural and OO languages, unless you're using a ternary operator.

Name: Steve 2017-02-10 10:51

>>10
I just use a ternary operator for everything

Name: Steve 2017-02-10 10:57

>>11
Could someone please check my dubs?

Name: Anonymous 2017-02-10 11:22

>>11,12
pretty good dubs, but you should ask others to check'em in the same post you GET'em. also, don't be so shy when showing off the dubs. be proud of them!

Name: Anonymous 2017-02-10 11:33

Jfc prog this place is a trainwreck

Name: Anonymous 2017-02-10 17:54

>>10
directly returning the result of an if isn't allowed in most procedural and OO languages
You've been listening to the bizarre grant embezzlers again.

Name: Anonymous 2017-02-11 7:49

>>15
Excuse me?

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