if __name__ == "__anus__": '\n\t'.join(["indent:", "my", "anus"])
Name:
Steve2017-02-09 17:51
>>4 this is how they actually write in p y t h o n
Name:
Anonymous2017-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:
Anonymous2017-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:
Anonymous2017-02-10 3:03
>>7 That assigning a statemenet to a variable is a syntax error.
Name:
x153@live.com2017-02-10 5:57
'\n\t'.join(["indent:", "my", "anus"]) if __name__ == "__anus__":
Name:
Anonymous2017-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.
>>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!