DEV Community

Discussion on: Why doesn't/didn't C have classes?

Collapse
 
cjbrooks12 profile image
Casey Brooks

I think you just invented C++ 😉

C++ was literally created to be "C with classes", and while it has grown well beyond that today, C++ is still at it's core C, but with classes. Because there's already C++ for developers wanting classes, C today is kept intentionally lightweight for bare-metal programming or ultra high performance code.

Collapse
 
dhvcc profile image
Alexey

Well now they are more like separate languages, but the commission tries to remain backwards compatibility