On Friday, 28 October 2022 at 15:29:15 UTC, ryuukk_ wrote:
>On Friday, 28 October 2022 at 14:49:28 UTC, Nick Treleaven wrote:
>On Friday, 28 October 2022 at 14:47:27 UTC, ryuukk_ wrote:
>On Friday, 28 October 2022 at 14:43:54 UTC, Nick Treleaven wrote:
>Has C or C++ actually added sum types to their standards?
It was proposed and feedback was favorable, it's only just a matter of when now
Do you have a link? I saw the circle compiler extension and feedback wasn't all favourable. Standardising something is long and arduous.
Here is the latest revision i could find
https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2020/p1371r3.pdf
And Bjarne Stroustrup thoughts
https://www.open-std.org/JTC1/SC22/WG21/docs/papers/2021/p2411r0.pdf
That's pattern matching (I probably confused things mentioning circle). Presumably sum types would still be a library feature in C++.