3 ms·
Python does have an auto-formatter [6], so clearly indentation doesn't prevent that. > Also, forget a brace in your program, just one, and the compiler can tel
by xigoi 3y ago
Python does have an auto-formatter [6], so clearly indentation doesn't prevent that.
> Also, forget a brace in your program, just one, and the compiler can tell.
Should we duplicate every character, so the compiler can tell if you leave one out? This is not a radiation-hardened quine [7].
> editor settings can make it much easier to break things with significant whitespace.
Then use an editor which doesn't.
> Selecting all code contained in a brace or a parents is so much easier (in vim the % movement) than if you have to walk lines.
I have a plugin for Neovim that adds indentation-based motions. The implementation is trivial.
[6] https://github.com/psf/black https://github.com/psf/black
[7] https://codegolf.stackexchange.com/questions/57257/radiation-hardened-quine https://codegolf.stackexchange.com/questions/57257/radiation...