2 ms·
The need to express polymorphism manually in C, the need to remember to check errors returned by functions (instead of the monadic style of computation), the ne
by Hirrolot 3y ago
The need to express polymorphism manually in C, the need to remember to check errors returned by functions (instead of the monadic style of computation), the need to define closure's environment structures (those that are passed via something like `void *arg`), etc.
All these things are pretty tedious. And all these things are what other languages are doing under the hood. The difference is that C gives you a choice of _how_ to do (more) things; other languages do not.
- JohnFen 3y ago> The need to express polymorphism manually in C Or, don't do polymorphism in C. It's not a mandatory technique. I love C, but I'd argue that if you're doing advanced OOP, you should use a more appropriate language.