Algebraic replacement
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Wed Jul 8 14:34:45 PDT 2015
On 7/8/15 4:31 PM, Freddy wrote:
> std.variant's Algebraic
> (https://github.com/D-Programming-Language/phobos/blob/master/std/variant.d)
> seems very complex for what it's trying to do and is also unsafe.
What's unsafe about it?
> Is it worth writing a simpler replacement?
>
> Something like this
> https://github.com/Superstar64/tagged_union/blob/master/source/tagged_union.d
> ?
No. The code is incorrect in several places.
Andrei
More information about the Digitalmars-d
mailing list