by saagarjha · 8y ago · 0 comments
I suppose union based type punning makes the intent a little clearer (vis a vis memcpy) but that's a weak argument at best.
How much more explicit can you get than a memcpy?
Memcpy is a cost. Do it only when you actually need a copy.