2 ms·
In 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 s
by j2d2 18y ago
In 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.