Momentary Eh?! for a Dynamic Language Programmmer. Tuples vs Arrays. Just rambling.

John Carter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Jun 23 15:11:56 PDT 2014


On Monday, 23 June 2014 at 21:49:29 UTC, Ary Borenszweig wrote:

> Union types are very common (I use them every day), and IMHO 
> it's very nice to have them included in the language (either 
> built-in or as a library solution). As a library solution I 
> would do something like this:
>
> Union!(int, string)[] elements;

Hmm. egrepping through /usr/include/dmd fails to find 
'\bUnion\b', are you sure you don't mean Algebraic?


More information about the Digitalmars-d-learn mailing list