std.sumtype?

drug drug2004 at bk.ru
Thu Mar 25 15:23:35 UTC 2021


On 3/25/21 6:17 PM, Paul Backus wrote:
> Usage:
> 
>      someType.match!(
>          restrictTo!(Foo0, Foo1, Foo2, Foo3, Foo4,
>              val => doSomething1
>          ),
>          restrictTo!(Bar, Baz, FooBar,
>              val => doSomething2
>          ),
>          _ => doDefaultThings
>      );

Looks good


More information about the Digitalmars-d mailing list