Sum Types - first draft

Quirin Schroll qs.il.paperinik at gmail.com
Thu Sep 19 21:36:29 UTC 2024


On Tuesday, 10 September 2024 at 04:06:16 UTC, Walter Bright 
wrote:
> https://github.com/WalterBright/documents/blob/96bca2f9f3520cf53ed5c4dec8e5e2d855e64e66/sumtype.md
>
>
> I wrote that some time ago back in November 2022. The idea is 
> to have a sumtypes proposal, followed by a match proposal.
>
> Previous discussions:
>
> https://www.digitalmars.com/d/archives/digitalmars/D/sumtypes_for_D_366242.html
>
> https://www.digitalmars.com/d/archives/digitalmars/D/Sum_type_the_D_way_366389.html
>
> https://www.digitalmars.com/d/archives/digitalmars/D/draft_proposal_for_Sum_Types_for_D_366307.html

Is there a reason you mention Boost’s `variant`, but not not 
C++17’s `std::variant`?


More information about the dip.development mailing list