3 ms·
Make requires tabs (at least a leading tab). Anything but an all-spaces practice will make you miserable in Python. But in practice, in any environment where
by dded 13y ago
Make requires tabs (at least a leading tab).
Anything but an all-spaces practice will make you miserable in Python.
But in practice, in any environment where I've worked, there's never been a problem with mixed tabs and spaces for most languages. I've only ever seen this debate online, never in the office.
Tabs align at boundaries of 8 spaces by default in all environments in which I've worked. (Tab characters, that is. I'm not talking about what an editor might insert when you hit the tab key.) Are there any significant environments where this is not true?
- ElongatedTowel 13y agoTabs work fine in Python if you don't mix them with spaces. Or is there a problem with tabs I've never encountered?
- dded 13y agoTrue. But my point, really, was that in most circumstances even tabs mixed with spaces isn't so very bad. I mentioned Make and Python as examples of exceptions. BTW, do you really use tabs in Python code? I've not ever encountered that.
- ElongatedTowel 13y agoI use tabs wherever possible, yes. Though that might change in the future. I'm not sure why spaces are so common in the Python world.