Accepted Proposal
As Zig is a lot about communication, we should probably rename packed struct into something that represents more what it actually is.
Right now, a lot of people assume that packed struct follows similar rules as regular or extern structs, which isn't true anymore with stage2. Thus, a lot of confusion is created and people misuse packed structs accidently or try to solve problems with them where extern struct is the right hammer.
I propose to change the name of packed struct into something that clearly represents what it is. My current best guess would be bitrecord or bitfield, and respectivly rename packed union to bitunion (which is not a good name).
This change is also a good idea as you cannot put arrays or pointers into packed structs
Accepted Proposal
As Zig is a lot about communication, we should probably rename
packed structinto something that represents more what it actually is.Right now, a lot of people assume that
packed structfollows similar rules as regular orexternstructs, which isn't true anymore with stage2. Thus, a lot of confusion is created and people misusepacked structsaccidently or try to solve problems with them whereextern structis the right hammer.I propose to change the name of
packed structinto something that clearly represents what it is. My current best guess would bebitrecordorbitfield, and respectivly renamepacked uniontobitunion(which is not a good name).This change is also a good idea as you cannot put arrays or pointers into
packed structs