4 ms·
> C++ has a philosophy of not doing anything with the language if it can be done in library. Except all the OOP features, which absolutely needed dedicated syn
by xigoi 1y ago
> C++ has a philosophy of not doing anything with the language if it can be done in library.
Except all the OOP features, which absolutely needed dedicated syntax even though they could have been a library.
- fooker 1y agoTrue You can design a pretty decent version if your users are willing to write a tiny bit of boilerplate. In fact, the LLVM project sort of does this, for the sake of compiling with -fno-rtti - https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html