Discriminated Unions

Dejan Lekic dejan.lekic at gmail.com
Mon Nov 18 17:22:52 PST 2013


On Tue, 19 Nov 2013 00:55:48 +0100, Stretto wrote:

> F# now has Discriminated Unions:
> 
> http://msdn.microsoft.com/en-US/library/dd233226.aspx
> 
> Would it be possible to have something similar in D?

It is in Phobos under the name Variant : http://dlang.org/phobos/
std_variant.html .


More information about the Digitalmars-d mailing list