On Monday, 7 May 2018 at 21:35:44 UTC, Paul Backus wrote:
On Monday, 7 May 2018 at 19:28:16 UTC, Sönke Ludwig wrote:
Another similar project: http://taggedalgebraic.dub.pm/
There's also tagged_union and minivariant on dub, that I've
found. I'm definitely far from the first person to be
dissatisfied with `Algebraic`, or to try my hand at writing a
replacement.
The main difference between all of those and sumtype is that
sumtype has pattern matching. Personally, I consider that an
essential feature--arguably *the* essential feature--which is
why I went ahead with Yet Another implementation anyway.
I agree - it's the same reason I was going to write one. But now
I don't have to. :)
Atila