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 .