3 ms·
For a language that's infamous for its strictness in regards to whitespace, I'm surprised "x<-2" is allowed. Why not just require whitespace around every opera
by pmoriarty 7y ago
For a language that's infamous for its strictness in regards to whitespace, I'm surprised "x<-2" is allowed.
Why not just require whitespace around every operator?
- memetichazard 7y agoPython isn't that strict about whitespace? It's just using indents to delineate blocks and newlines implicitly terminate statements (unless you have an unclosed brace). Anywhere else, you can add as much whitespace as you want.
- NieDzejkob 7y agoIt's not strictness with regards to whitespace, it's just using indentation to delimit blocks. The rest is less strict than C, not requiring spaces between numbers and keywords: print(1if 2else 3) is valid Pythonese.