|
|
|
|
|
by gmfawcett
1550 days ago
|
|
A wild nitpicker appears. I understand where you're coming from & why this matters. But Go, the language spec, doesn't make any guarantees about struct layout at all. A layout difference may be meaningful, practically, but it's potentially unreliable. e.g. see https://groups.google.com/g/golang-nuts/c/1BlZDNBLiAM Having said that: if a Go compiler for a given architecture decided to change its layout algorithm, I'm pretty sure it would earn a changelog entry. |
|
Language designers need to contend with the fact that the ultimate final say in whether a thing is or not is whether that behavior is observed.