3 ms·
Related to this pattern: I recently wondered why Casey Muratori (RAD Game tools, Handmade Hero etc.) seems to write C++ in a very C like fashion plus a few sel
by dgb23 3y ago
Related to this pattern:
I recently wondered why Casey Muratori (RAD Game tools, Handmade Hero etc.) seems to write C++ in a very C like fashion plus a few select features.
Here's a discussion: https://hero.handmade.network/forums/code-discussion/t/453-why_use_c++_instead_of_c https://hero.handmade.network/forums/code-discussion/t/453-w...
One of the takeaways is that he prefers the simplicity of C but uses operator overloading for similar reasons as you describe. One example includes addition of vectors, which is certainly a thing you do often in game and graphics related code.