That's specific to C++, which has relatively low overhead for classes to begin with. For languages with more overhead for classes, having a seperate system for structs can allow for significantly less overhead when things like polymorphism aren't necessary.
View all comments
Show parent comment
1
u/tecanec Oct 12 '26
That's specific to C++, which has relatively low overhead for classes to begin with. For languages with more overhead for classes, having a seperate system for structs can allow for significantly less overhead when things like polymorphism aren't necessary.