Hacker News new | ask | show | jobs
by cpeterso 5253 days ago
Amen! There are good reasons why Google's [1] and Mozilla's [2] C++ style guides frown on C++ features like exceptions, RTTI, iostreams, and static objects.

I read an anecdote that Bill Joy has a "copy of Bjarne Stroustrup's The C++ Programming Language in which he's highlighted all the sections that Java programmers don't need to concern themselves with." I wonder what a C++-compatible subset language would look like if someone just deleted code from a C++ grammar. Rather than writing style guides and lint scripts, just whittle down a C++ compiler's front-end. :)

[1] https://google-styleguide.googlecode.com/svn/trunk/cppguide....

[2] https://developer.mozilla.org/index.php?title=en/C%2B%2B_Por...