3 ms·
> "Magic" becomes obvious common-sense once you understand. I fully agree. Packing data into a binary array, popcount with bit fiddling, macros for generics, e
by attractivechaos 10y ago
> "Magic" becomes obvious common-sense once you understand.
I fully agree. Packing data into a binary array, popcount with bit fiddling, macros for generics, etc may seem "magic" to some, but they can be useful especially in performance-critical code. Once you understand these "magic", they are just some common pieces in your toolbox. C is a simple language. Learning C plus such "magic" still takes much less time than grasping the entire C++.