Can someone explain to me why the compiler can’t do struct-field-alignment? This feels like something that can easily be automated.
replies(3):
I assume the thinking was that this is pretty easy to optimise if you care, and if it's on by default there'd then have to be some opt-out which there isn't a good mechanism for.
Good is subjective, but the mechanism is something already implemented: https://pkg.go.dev/structs#HostLayout
What I was hoping not to find (and fortunately didn't!) was one of Go's magical syntactic comments.