4 ms·
https://golang.org/ref/spec https://golang.org/ref/spec certainly is a specification of the Go language. Whenever a difference is found between the two Go comp
by crawshaw 9y ago
https://golang.org/ref/spec https://golang.org/ref/spec certainly is a specification of the Go language.
Whenever a difference is found between the two Go compilers, gccgo and gc, the spec is consulted to see which is right. If the spec is not clear on which compiler is right, then the spec is changed so it is.
When the third frontend was written (go/parser and go/types in the standard library), the spec played a similar role. Though far fewer changes were made to the spec, suggesting it is getting pretty good.
- didibus 9y agoOh, that's good to know. I'm happy to hear it is trying to be a language with a formal spec.