Re:Switching to C over 'Modern' Programming Languages
by flohofwoe on Friday April 14, 2023 @03:36AM
(#35566601)
Unions for type punning is actually entirely valid in C, it's only UB in C++.
(I agree though that the C standard isn't actually relevant in the real world, most C compilers treat it more or less as a 'suggestion', unless enforced with options like '-pedantic')
And maybe this: https://dl.acm.org/doi/10.1145/3477113.3487274