3 ms·
If I've said it once I've said it a thousand times: Python cares about indentation not whitespace. You can format your code any way you please, but it turns out
by gaius 18y ago
If I've said it once I've said it a thousand times: Python cares about indentation not whitespace. You can format your code any way you please, but it turns out that arguments about where to place curly braces don't actually contribute to getting real work done, and Python people don't miss them.
- j2d2 18y agoIn perl you can write 'if(!bool) { ... }', 'unless(bool) { ... }', or even '... if(!bool)' As I said, I'm not an expert in the languages in question, but the scope of code formatting flexibility is larger than just whitespace.
- ii 18y agoIn Python you can do the same: 'if not bool: ...', 'while bool: ...', '[for ... if not bool]'. Crazy one-liners are also possible. We have just enough formatting flexibility and we prefer readability.