News for hackers. Stuff that matters.
Re:The ups of downs of porting 50k lines of C++ to Go by masklinn on Saturday March 07, 2015 @09:08AM (#9161838)
I believe it's also possible to use variable-size arrays in C or C++ (and end up with a variable-size struct).

Go does allow fixed size arrays in structs, and they're inline in the struct, so `struct { foo [8]uint }` is 32 bytes, whereas `struct { foo []uint }` is 12 bytes and `struct { foo string }` is 8.

There are no comments on this comment yet.