Go generally is pretty conservative about that kind of thing (namely, compiler optimizations). Go generally abides by a “what you write is what you get” kind of thing, especially when it comes to “non-local” optimizations. It’s generally opposed to anything that’s “clever.” (Just my feeling as someone who uses Go pretty often and who respects the choice they’ve made on that spectrum).
unknown|2 years ago
[deleted]
perfmode|2 years ago
and for the implementation of the compiler to remain simple
travisd|2 years ago
pjmlp|2 years ago