2 ms·
Here is how you do it in D: http://dlang.org/phobos/std_variant.html http://dlang.org/phobos/std_variant.html
by qznc 12y ago
Here is how you do it in D: http://dlang.org/phobos/std_variant.html http://dlang.org/phobos/std_variant.html
- aikah 12y agoD looks interesting. I wonder why it's not more popular,it seems it has been around for years.Maybe it needs to be embraced by a big company first.I heard its creator works at Facebook though.
- qznc 12y agoFacebook uses it a little behind the scenes. http://wiki.dlang.org/Current_D_Use http://wiki.dlang.org/Current_D_Use Not the original creator Walter Bright, but "second in command" Andrei Alexandrescu works at Facebook.