Re:Apple's SSL/TLS bug
by laureny on Saturday February 22, 2014 @10:51AM
(#7282395)
Any language that lets you omit braces for single statements is prone to this bug, which includes C++.
[ Parent
| on HN ]
Suggestion to clang and gcc developer: implement -Wmandatory-curly-braces
At least, short of making it mandatory it would at least signal bad style.
Well it was mostly a tongue-in-cheek comment (was thinking of yesterday's C++ exception topic), but essentially true as you would not have used the "if + goto" with C++ error handling. Of course you can write the same bug (and more) in C++ too.