I wrote a JSON library

deadalnix deadalnix at gmail.com
Wed May 8 18:42:40 PDT 2013


On Wednesday, 8 May 2013 at 21:05:55 UTC, w0rp wrote:
>> 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.
>
> I think that's a good point. I'll change them immediately and 
> push to github.

Awesome. Another nice thing you can do it to use alias this on a 
@property to allow for implicit conversion to int.

Overall, the API is super nice ! If performance don't matter, I 
definitively recommend to use the lib.


More information about the Digitalmars-d mailing list