4 ms·
Significant whitespace a la Python. When I first started learning Python I hated the idea of significant whitespace, now I think it is the best thing ever.
by dual_basis 7y ago
Significant whitespace a la Python.
When I first started learning Python I hated the idea of significant whitespace, now I think it is the best thing ever.
- 0815test 7y agoUsing rustfmt consistently will get you basically 90% of the way towards the "Pythonic" benefits of significant whitespace. On the other side, having lexical block nesting be controlled by an explicit pair of characters { } is a pretty significant advantage, particularly so for Rust where placing a bit of code in its own block can have rather significant implications of its own!
- dorfsmay 7y agoI'm the other way around. When I started with Python I instantly fell in love with "format is the syntax". A few format bugs later (people changed code and didn't push/pull a block, or merged two blocks by mistake), and using autoformatters, and now I wish Python used another mechanism.