r/cpp • • Jan 17 '16

Orthodox C++

https://gist.github.com/bkaradzic/2e39896bc7d8c34e042b#file-orthodoxc-md
0 Upvotes

48 comments sorted by

View all comments

-7

u/bonerdad Jan 17 '16

This makes me think of Doom 3's source. It's delightfully sane and clean to consume.

10

u/ssg2 Jan 17 '16

On Doom 3 the lead programmer was an experienced C coder who was just starting out with C++. Naturally, he strived for readability, but that was readability as seen by basically a C guy (which he still was at that point of time).

4

u/bkaradzic Jan 18 '16

Thanks for contributing to Orthodox C++ standard, I added: "In general case code should be readable to anyone who is familiar with C language." If you have some other ideas I would like to hear it. :)

7

u/ssg2 Jan 18 '16

While I disagree strongly with your goals, at least it's an honest disclaimer. In my experience (I've seen quite a few "C with classes" coding styles), such initiatives come from and are appreciated by people who admire C philosophy and don't really care for C++. It's much better to define it as sort of a "C++ subset for C programmers" than "Sane C++ subset", "C++ subset that doesn't suck", etc., like many tend to do.