4 ms·
It's just an example of something that the Go team took a decision on, and won't allow you to change. I mean, even Python lets you choose. I don't really have a
by nickserv 7y ago
It's just an example of something that the Go team took a decision on, and won't allow you to change. I mean, even Python lets you choose.
I don't really have a problem with it however, even if I do prefer spaces.
- giancarlostoro 7y agoPython 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
- monocasa 7y agoThere's a difference between making decisions that are really open to bikeshedding, and making sweeping decisions in contexts that legitimately need per app tuning like immature GCs. The Azul guys get to claim that you don't need to tune their gc, golang doesn't.
- geodel 7y agoHmm ..this is why Azul's install and configure guide run in hundreds of pages. All the advanced tuning, profiling and configuring OS commands, setting contingency memory pools are perhaps for GCs which Azul does not sell.
- monocasa 7y agoI mean, they'll let you because the kind of customers want to be able to are the kinds of customers that Azul targets. But everything I've heard from their engineers is that they've solved a lot of customer problems by resetting things to defaults and just letting it have a giant heap to play with. Not sure how that makes the golang position any better.