News for hackers. Stuff that matters.
Re:Why Discord is switching from Go to Rust by giancarlostoro on Tuesday February 04, 2020 @02:23PM (#22239835)
Python chose spaces a la PEP8 by the way.
Re:Why Discord is switching from Go to Rust by dragonwriter on Tuesday February 04, 2020 @02:26PM (#22239860)
PEP8 isn't a language requirement, but a style guide. There are tools to enforce style on Python, but the language itself does not.
Re:Why Discord is switching from Go to Rust by giancarlostoro on Tuesday February 04, 2020 @02:31PM (#22239930)
Same 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-...

Re:Why Discord is switching from Go to Rust by marsokod on Tuesday February 04, 2020 @02:29PM (#22239902)
You 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.
Re:Why Discord is switching from Go to Rust by giancarlostoro on Tuesday February 04, 2020 @02:33PM (#22239959)
Same with Go, you can use spaces.
Re:Why Discord is switching from Go to Rust by _wldu on Tuesday February 04, 2020 @02:56PM (#22240217)