3 ms·
Tabs for indentation, spaces for alignment. That's the only acceptable mixing. It works because it allows everyone to configure their code editor to have tabs
by Sohcahtoa82 9y ago
Tabs for indentation, spaces for alignment. That's the only acceptable mixing.
It works because it allows everyone to configure their code editor to have tabs be whatever width they want without messing up how it looks for other people.
But it's futile. Unless there's a git hook setup or you're using Python 3 which throws errors when tabs and spaces are both used for indentation, you're gonna end up with source files with both being used.