4 ms·
Python chose spaces a la PEP8 by the way.
by giancarlostoro 7y ago
Python chose spaces a la PEP8 by the way.
- dragonwriter 7y agoPEP8 isn't a language requirement, but a style guide. There are tools to enforce style on Python, but the language itself does not.
- giancarlostoro 7y agoSame thing with Go... Tabs aren't enforced, but the out of the box formatter will use tabs. PyCharm will default to trying to follow PEP8, and GoLand will do the same, it will try to follow the gofmt standards. See: https://stackoverflow.com/questions/19094704/indentation-in-go-tabs-or-spaces https://stackoverflow.com/questions/19094704/indentation-in-...
- marsokod 7y agoYou can use tabs to indent your python code. Ok, you might be lynched if you share your code but as long as you don't mix tabs and spaces, it is fine.
- giancarlostoro 7y agoSame with Go, you can use spaces.
- _wldu 7y agoOr none at all: https://play.golang.org/p/VeEaJbJ6sYT https://play.golang.org/p/VeEaJbJ6sYT