That's not what a zero cost abstraction is. I would say OP's post isn't one though, since it's not an abstraction.
A zero cost abstraction is one that actually abstracts something and doesn't cost more than it would for you to do it yourself without the abstraction at runtime
396
u/emosaker Sep 21 '26
I mean somewhat programming related but it's missing the humor bit
32
u/Neutraled Sep 21 '26
I would have used 'lateinit' just to mess with more people.
58
u/ThatSmartIdiot Sep 21 '26
is this a & to something ||...?
35
u/razor_train Sep 21 '26
But I have to *p now.
30
u/kilouco Sep 21 '26
Something about this post made me miss traditional coding.
7
u/Only-Cheetah-9579 Sep 21 '26 edited Sep 22 '26
its not zero cost, somebody (or something) will read that code /sarcasm
4
u/ExtraWorldliness6916 Sep 21 '26
So I'm just a JavaScript guy but is this in maybe for later, as a point of principle, I can't remember.
4
u/GoddammitDontShootMe Sep 23 '26
So that just becomes
int *p;What's the point?3
u/Apprehensive_Bit7392 Sep 22 '26
It also deletes every other later in the translation unit. Hope nobody named a variable that.