News for hackers. Stuff that matters.
Re:Can you use a class in C? by up2isomorphism on Monday August 14, 2023 @03:24AM (#37118363)
What he has said applies to any member functions. It is a nuance to have to add a parameter, but certainly it does not only apply to getter and setters.

Dynamic dispatchinga are not necessarily evil, but that also doesn’t exclude C. Not sure how this idea C++ is inherently more dynamic or static comes from. For a ling time you can implement all the dynamic behavior of C++ in C, and it took C++ ‘s template as expressive as C macros.

Sometimes, less is more.that’s where C++ never gets right.

There are no comments on this comment yet.