Programmer admission 

I always thought classes had some runtime overhead (perf or memory) that wasn't present in structs. Turns out, if you don't use constructor, destructors, or virtual functions they are identical.

I've been using c and cpp and being paid for it for over a decade now.


Programmer admission 

(I haven't verified this on godbolt or anything, just taking stack overflows word for it)

· · Web · 0 · 0 · 0
Sign in to participate in the conversation
Friend Camp

Hometown is adapted from Mastodon, a decentralized social network with no ads, no corporate surveillance, and ethical design.