4 ms·
> There's nothing intrinsically weird about indentation being significant. It's quite visibly part of the code you write and read. The idea is fine, I guess, a
by toast0 2mo ago
> There's nothing intrinsically weird about indentation being significant. It's quite visibly part of the code you write and read.
The idea is fine, I guess, although I certainly don't care for it. Where it gets most nasty is that whitespace that looks the same (in your editor) might not be equal and will cause you pain.
- xigoi 2mo ago> Where it gets most nasty is that whitespace that looks the same (in your editor) might not be equal and will cause you pain. This is why idiomatic Python only uses spaces for indentation.
- zahlman 2mo ago> Where it gets most nasty is that whitespace that looks the same (in your editor) might not be equal and will cause you pain. First off, what editor could I end up using in 2026 that makes this a realistic problem? Even the most basic editors I know of have options to convert tabs to spaces automatically (and any responsible teacher will tell the student to indent with spaces), and to continue the previous line's indentation automatically. Second, modern Python is stricter about this, and also gives clear error messages.