On Sat, Feb 22, 2014 at 5:06 PM, Neil <n...@parkwaycc.co.uk> wrote: > Joshua Cranmer wrote: >> Being serious here, early-return and RTTI (to handle the cleanup prior to >> exit) would have eliminated the need for gotos in the first place. > > I assume you mean RAII. Unfortunately that requires C++. (I was fooled too; > someone pointed out to me on IRC that update is actually a function pointer > member. You reap what you sow.)
I agree with Joshua. RAII requires C++ but requiring C++ is no big deal. RAII and early returns greatly help readability and thus security. This is exactly why the new certificate verification code is written in C++. Cheers, Brian -- Mozilla Networking/Crypto/Security (Necko/NSS/PSM) _______________________________________________ dev-platform mailing list dev-platform@lists.mozilla.org https://lists.mozilla.org/listinfo/dev-platform