3 ms·
You can certainly do static polymorphism with macros in C, it is just very painful and unpleasant.
by gpderetta 4y ago
You can certainly do static polymorphism with macros in C, it is just very painful and unpleasant.
- badsectoracula 4y agoYou don't need to do it all the time - or at all - just for the few things that can be performance sensitive (assuming the only reason you'd care is about performance and not, e.g. type safety) and that after you've actually figured out there is a performance issue that can only be solved with such an approach. After all while the linked article's author seem to present it as a problem that it took 25 years for this to be fixed, another way to see it is that it took 25 years for this to be an issue for someone to bother enough to try and fix it.