DIP: add Bit Fields
Walter Bright
newshound2 at digitalmars.com
Mon Apr 22 07:11:33 UTC 2024
On 3/16/2024 2:32 PM, Timon Gehr wrote:
> On 3/7/24 20:42, Walter Bright wrote:
>> If you are still concerned about the layout, like you want a portable file
>> format, don't use bit fields. Use std.bitmanip.
>
> Well, that's kind of a foot gun. Portable by default is better.
One thing about language design - there is no rule that overrides every other
rule. This applies to everything. Every design is a balance of competing interests.
More information about the dip.development
mailing list