Elye - A One Eye Developer
1 min readAug 24, 2020

--

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);
}

--

--