Quantcast
Channel: MarsHut
Viewing all articles
Browse latest Browse all 6551

std.json: why no constructors

$
0
0
Why doesn't JSONValue have constructors for the types it can
store? Like these:
https://github.com/GassaFM/icfpc2013/blob/master/icfputil/icfplib.d#L76-L112

Or did I entirely miss the One Right Way to do that?

I know there is std.serialization on its way, but for now, it was
just more convenient to use what is already present in Phobos.

Ivan Kazmenko.

Viewing all articles
Browse latest Browse all 6551

Trending Articles