3 ms·
Sounds like they know what they are doing. How is using c++ with only data classes different from using c with struct
by zaphirplane 2y ago
Sounds like they know what they are doing. How is using c++ with only data classes different from using c with struct
- porridgeraisin 2y agoSlightly better ergonomics I suppose. Member functions versus function pointers come to mind, as do references vs pointers (so you get to use . instead of ->)
- bsenftner 2y agoYeah, slightly better ergonomics. Although we could, we simply did not use function pointers, we used member functions from the data class the data sat inside. We really tried to not focus on the language and tools, but to focus on the application's needs in the context of the problem it solves. Basically, treat the tech as a means to an end, not as a goal in itself.
- relaxing 2y agoNamespaces are useful for wrapping disparate bits of C code, to get around namespace collisions during integration.
- int_19h 2y agoTemplates (without crazy metaprogramming stuff) can be a godsend for basic data structures.