Andrei's list of barriers to D adoption

Wyatt via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 10 08:30:19 PDT 2016


On Friday, 10 June 2016 at 14:34:53 UTC, Adam D. Ruppe wrote:
> var globals = var.emptyObject;
> globals.write = &(writeln!string);

Woah, I never thought of using it like that!

> The downside though is that it is something I basically slapped 
> together in a weekend to support var.eval on a lark... it has a 
> few weird bugs

And yet it somehow seems to _work_ better than std.variant. :/

> tho idk if I'd recommend it for serious work. Just use D for 
> that!

I use it in my toml parser and it's very pleasant.  I figured it 
probably isn't very fast, but it works and that's important.

-Wyatt


More information about the Digitalmars-d mailing list