4 ms·
the kernel has to live with the choices it made in the 90s, you don't
by adtac 5y ago
the kernel has to live with the choices it made in the 90s, you don't
- midjji 5y agoYeah they should have upgraded to some restricted subset of C++ or new restrictive language ages ago. I mostly buy the arguments against having exceptions, perhaps even against polymorphism in general, but the argument against destructors, or atomics... hell no.
- humanrebar 5y ago> ...against polymorphism... C has polymorphism. Inheritance-based virtual dispatch is just one kind of polymorphism. It's common to wire up polymorphism in C with bespoke data structures using tagged unions it function pointers. Changing an implementation at link time is even a form of polymorphism.
- TeeMassive 5y ago> Changing an implementation at link time is even a form of polymorphism. I never truly appreciated how polymorphism can take so many different forms!
- midjji 5y agoyes, and that is generally worse