News for hackers. Stuff that matters.
Re:Proving that C++'s grammar is undecidable by kllrnohj on Wednesday April 29, 2020 @01:03AM (#23015560)
> Braced initialization is crazy and I don't understand it

It's a disambiguation thing: https://en.wikipedia.org/wiki/Most_vexing_parse

The simple recommendation is to just always use {} when you want to construct an object, see https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines...

Re:Proving that C++'s grammar is undecidable by saagarjha on Wednesday April 29, 2020 @01:52AM (#23015836)
Unfortunately it’s not perfect and can do strange or undesirable things sometimes, especially when interacting with auto.
Re:Proving that C++'s grammar is undecidable by kllrnohj on Wednesday April 29, 2020 @11:56AM (#23020692)
C++17 improved the auto situation. It looks pretty much as I'd expect now.