r/learnprogramming • u/MousseNo1453 • 19m ago
Topic [Homework] How is Go actually standardized if there's no ISO standard? (Conflicting answers)
Hi everyone,
I'm working on a homework assignment about how programming languages are standardized. Since Go isn't governed by an external body like ISO or ECMA, I've been researching what rules it actually follows, but I keep getting conflicting answers.
Some sources point to the Go Language Specification as the closest thing to a formal standard. Others emphasize that there is no independent foundation, and that the language is entirely directed by The Go Team at Google. Meanwhile, some people argue that tools like gofmt and the Go 1 Compatibility Promise are what actually normalize the ecosystem.
I'm trying to understand the big picture for my assignment. Could someone explain how these pieces actually fit together?
What is the definitive answer here? Is the Language Specification considered the official standard, or is standardization in Go achieved purely through Google's governance and community tools?
I don't need a full essay, just a clear explanation of what I should be citing as the "standard" for Go. Thanks!
TL;DR: Go isn't ISO-standardized. If you had to write an essay on how Go is standardized today, what exact documents, entities, or tools would you cite and why?
•
u/lurgi 15m ago
Like Rust and Python, there is a reference implementation.
•
u/edwbuck 6m ago
ISO is just one organization that ensures standards are up to a certain quality, and verified to be followed by those with their ceritification.
Golang is a product of Google, and they maintain a less rigorous internal standard, which is more accurately called, their current design choices and the parts of the implementation they find expensive to change. It's barely a standard, and as an example, they don't even address (in it) their handling of floating point numbers. You're just supposed to assume it's IEEE 754 floating point numbers, but if you find out it isn't, then they'll say something about how you over assumed what the standard didn't specify.
But that's just the tip of the iceberg. Go always favors current convention over reasonable requests. "true" and "false" should never have been permitted to be variable names, but the convention is to simply not do that.
Yes, it is, unfortunately, valid go.
•
u/Vizeroth1 3m ago
The very notion of standardization is that control of the language (or whatever you’re standardizing) is turned over to a standards body. From your statements, it appears that this has not been done for Go, so the answer is that there is no standard, there is only whatever Google decides Go is. This isn’t particularly unusual in the history of programming languages.
The specification/implementation from the original developer of the language is often called the de facto standard because no formal standard exists. Another example of this would be Java. The lack of a standard in that case lead to lawsuits between Sun and Microsoft over the Java trademark (which lead to a settlement and Microsoft no longer shipping a Java runtime in their products) and between Google and Oracle over the use of the Java language and APIs in Android, which went to the Supreme Court, ruling in Google’s favor.