Skip to content

Instantly share code, notes, and snippets.

@bkaradzic
Last active February 25, 2026 12:28
Show Gist options
  • Select an option

  • Save bkaradzic/2e39896bc7d8c34e042b to your computer and use it in GitHub Desktop.

Select an option

Save bkaradzic/2e39896bc7d8c34e042b to your computer and use it in GitHub Desktop.
Orthodox C++

Orthodox C++

This article has been updated and is available here.

@d-musique
Copy link

@DBJDBJ

GCC and clang should introduce new switch: /orthodox

I've implemented it, pretty much. See https://github.com/d-musique/orthodoxy
It does the enforcement of programming rules that you mention.

It's quite recent and it works for me well. This thing was born out of extreme frustration with the ongoing ens*ittification of C++ to a point that I could no longer accept it.
This lead me to revise my approach to C++ programming to a large degree, and I judged this kind of tool to increasingly become a necessity. This has been on my mind for maybe a year or so but finally I dedicated some time so I could bring it to reality.

@bkaradzic
Copy link
Author

@d-musique Excellent! 👍

@iperov
Copy link

iperov commented Feb 25, 2026

Any language starts to grow features with which you can accomplish the same task in a large number of ways.
As a result, when you read someone else's C++ code, it looks alien, because the language provides many ways to do the same thing.
Rust follows the same path. C# similarly adds new keywords with each version instead of removing them and making the language simpler and clearer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment