3 ms·
> One of the flaws with pure encapsulation is that you can see a drop in performance. Having a bunch of functions to get inner members of a structure also block
by 1718627440 11mo ago
> One of the flaws with pure encapsulation is that you can see a drop in performance. Having a bunch of functions to get inner members of a structure also blocks the compiler from optimizing it’s best.
Why can't you just use an optimizing compiler? Trading casting const away, doesn't seem right to me.