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
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") (★)
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
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 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