Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Obscure C++ Features. Parent comment
If, for example, you'd like to reverse the condition, you can't write
if (!(MouseEvent *mouse = dynamic_cast<MouseEvent *>(event))) {}
If, for example, you'd like to reverse the condition, you can't write
because a definition is not a general expression, but was only added as an "extra" to allow its use in some cases in conditionals.