|Ned Batchelder : Blog | Code | Text | Site|
C++ FAQ Lite
» Home : Blog : December 2005
For the second time in two weeks, I happened upon Marshall Cline's C++ FAQ Lite. I'm not sure why it's called "Lite", because it is a huge list of hard questions, expertly answered. I thought I had shone a flashlight into every dark corner C++ had to offer, but I learned a few things poking around.
For example, in the answer to What does throw; mean? Where would I use it?, I learned that you can use throw even when not lexically nested in a catch:
(We can argue over whether this is a good idea: my point is I didn't even know it was possible in the language.) And in What should be done with macros that contain if? (and the three questions that follow it), Cline explores all of the fiddly details that you need to consider when writing macros of any interesting complexity.
The whole FAQ is amazing like this: chock-full of top-notch technical detail.
tagged: c++» 5 reactions