4 ms·
Agreed. At least you can see the parenthesis. and seriously, what is the mental difference between say (print 'hello') and print('hello'), for me the first is
by tmp_eSGPhx 3y ago
Agreed. At least you can see the parenthesis.
and seriously, what is the mental difference between say
(print 'hello') and print('hello'), for me the first is easier. They both have the same number of parenthesis, but in the first I can see all the operations that go together.
Hating python every time I use it. Python is lies all the way down. "You don't need curly braces or anything to mark your code blocks, only indentation"... until you want a multi-line item, in which case you, well, wrap it in parenthesis.
foo = ("a very"
"long"
"string")
is valid python, and so is
foo = ("a very",
"long",
"string")
but they give different results.
vs
(cat "a very"
"long" "srtring")
- Sohcahtoa82 3y ago> foo = ("a very" "long" "string") > is valid python, and so is foo = ("a very", "long", "string") > but they give different results. That's because the former creates implicit string concatenation, while the latter is 3 distinct strings. FWIW, while I love Python, I think implicit string concatenation is a huge anti-feature. It is a source of bugs and breaks the Zen of Python which states that explicit is better than implicit. Your first line should by a syntax error, as far as I'm concerned.