News for hackers. Stuff that matters.
Re:I Believe Zig Has Function Colors by gpderetta on Saturday April 09, 2022 @04:10PM (#30971564)
C++ had a dynamically typed variant that was useless and got deprecated (and eventually dropped) a few standards ago.
Re:I Believe Zig Has Function Colors by pjmlp on Sunday April 10, 2022 @04:44AM (#30975397)
It was deprecated in C++11, and a removed in C++17, yet now they are discussing adding it back in a flavour similar to Swift, so apparently there is some value into it.

So here you go, http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p070...

As for being useless, well that is the usual argument from no exception, no RTTI folks, that would be better off using another language instead of messing up with C++'s design.

Re:I Believe Zig Has Function Colors by gpderetta on Sunday April 10, 2022 @05:14AM (#30975533)
I'm very much in favour of statically checked exceptions (and noexcept is sorta-kinda like that). It is the old dynamically typed style which was little more than an assertion that wasn't very useful.