fat struct style guide?
monkyyy
crazymonkyyy at gmail.com
Tue Feb 24 16:21:01 UTC 2026
On Tuesday, 24 February 2026 at 16:19:05 UTC, H. S. Teoh wrote:
> On Tue, Feb 24, 2026 at 03:56:20PM +0000, monkyyy via
> Digitalmars-d-learn wrote:
>> On Tuesday, 24 February 2026 at 15:30:39 UTC, H. S. Teoh wrote:
>> > On Tue, Feb 24, 2026 at 03:48:46AM +0000, monkyyy via
>> > Digitalmars-d-learn wrote:
>> > > Im going to try doing something with fat structs, what
>> > > sort of syntax and api niceitys would big fat-struct
>> > > advocates say are nessery?
>> >
>> > What's a "fat struct"?
> [...]
>> Something like a "entity" that has a first member is a id
>> allowing for intrusive sumtypes from void* pointers or a giant
>> union and just allot of data.
> [...]
>
> So is that like ECS or something along those lines?
> *Entity-Component-System.
>
>
> T
Related ideas, but ecs will definitely have components which is a
whole thing of complexity and makes for scheduling and you start
talking about custom compilers.
All good ecs will probably be fat structs, but components are not
necessarily members of good entities.
More information about the Digitalmars-d-learn
mailing list