Orthodox C++
5 hours ago
- #Code Simplicity
- #C++ Programming
- #Software Development
- Orthodox C++ is a minimal subset of C++ that improves C by avoiding unnecessary Modern C++ features, aiming for simplicity and compatibility.
- It rejects exceptions due to runtime overhead and complexity, RTTI, C++ runtime wrappers, STL memory allocations, and excessive metaprogramming.
- Uses C-like syntax (e.g., printf instead of streams) and delays adoption of new C++ features until they are stable and widely supported (C++year + 5 guideline).
- Highlights disadvantages of modules, such as portability loss and build complexity, and recommends sticking to traditional headers.
- Provides examples of similar philosophies like Embedded C++ and cites codebases like DOOM 3 BFG and Qt as practical implementations.
- Encourages compatibility with older compilers and easier integration into other projects by limiting language feature usage.