I wrote a JSON library

deadalnix deadalnix at gmail.com
Wed May 8 09:30:52 PDT 2013


On Tuesday, 7 May 2013 at 20:14:20 UTC, w0rp wrote:
> Per request for examples of my library, I have produced this 
> little snippet. http://pastebin.com/sU8heFXZ It's hard to 
> enumerate all of the features I put in there at once, but 
> that's a pretty good start. I also listed a few examples in a 
> doc comment at the top of the json.d source.
>

The API look really nice ! I'd love to sse something similar into 
phobos APIwise.

But I don't like the shortcut choices. arr => array you only win 
2 chars ! That is nothing and certainly not worth the confusion. 
Same for obj => object. With this kind of practices, everybody 
come with its own set of shortcut and you have to remember all of 
them for each library ! What seems like a speedup at first ends 
up being a slowdown.


More information about the Digitalmars-d mailing list