3 ms·
Really I don't often use classes, unless they are providing a benefit. Just using them to group some state with some functions is not great because they have lo
by c0de517e 12y ago
Really I don't often use classes, unless they are providing a benefit. Just using them to group some state with some functions is not great because they have lots of drawbacks for that, I find an opaque pointer and C functions to be better at hiding implementation details and so on. I use classes basically when I need destructors and constructors, so for things that need to go in collections really. http://c0de517e.blogspot.ca/2012/09/follow-up-why-classes.html http://c0de517e.blogspot.ca/2012/09/follow-up-why-classes.ht...
- chris_wot 12y agoWhy not use a pimpl?