Hi Chris Fox

I admire your strict adherence to your preferred standard of curlies.

Standing by your standard, I will be disappointed with the C++ standard reference which has a mixture of them.

From https://isocpp.org/wiki/faq/coding-standards

class Foo {
// ...
static int xyz; // ...
// ...
}

and

namespace {
// ...
int xyz; // See the ...
// ...
}

and

void mycode()
{
// do_something_with(xyz);
↑↑ // The leading "//" improves ...
}

Their if-else doesn’t follow your approach

https://isocpp.org/files/papers/p0305r0.html

if (auto p = m.try_emplace(key, value); !p.second) {
FATAL("Element already registered");
} else {
process(p.second);
}

Written by

Passionate about learning, and sharing mobile development and others https://twitter.com/elye_project https://www.facebook.com/elye.proj

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store