Re: sumtype 0.10.0: multiple dispatch

2020-10-27 Thread Paul Backus via Digitalmars-d-announce
On Tuesday, 27 October 2020 at 16:26:10 UTC, vitamin wrote: Hello, Older version of sumtype accept this code: void main(){ import sumtype; alias Val = SumType!(bool); const bool b = true; Val val = b; //fail in newest version val = b; //fail in newest version } but

Re: sumtype 0.10.0: multiple dispatch

2020-10-27 Thread vitamin via Digitalmars-d-announce
On Thursday, 24 September 2020 at 02:28:11 UTC, Paul Backus wrote: SumType is a generic sum type for modern D. It is designed to be an improved alternative to `std.variant.Algebraic`. Features: - Pattern matching, including: - Match-by-introspection ("if it compiles, it matches") (★)

Re: sumtype 0.10.0: multiple dispatch

2020-09-24 Thread WebFreak001 via Digitalmars-d-announce
On Thursday, 24 September 2020 at 02:28:11 UTC, Paul Backus wrote: [...] - DUB: https://sumtype.dub.pm - Github: https://github.com/pbackus/sumtype Seems like dub.pm is still down, has been broken since like 6 months now :/ But your library looks really powerful, would love to see

Re: sumtype 0.10.0: multiple dispatch

2020-09-23 Thread Bruce Carneal via Digitalmars-d-announce
On Thursday, 24 September 2020 at 02:28:11 UTC, Paul Backus wrote: SumType is a generic sum type for modern D. It is designed to be an improved alternative to `std.variant.Algebraic`. [...] Sure looks like a strong advance. Hope it sees a lot of use.

sumtype 0.10.0: multiple dispatch

2020-09-23 Thread Paul Backus via Digitalmars-d-announce
SumType is a generic sum type for modern D. It is designed to be an improved alternative to `std.variant.Algebraic`. Features: - Pattern matching, including: - Match-by-introspection ("if it compiles, it matches") (★) - Multiple dispatch (★) - Support for self-referential types