juan_gandhi: (Default)
Juan-Carlos Gandhi ([personal profile] juan_gandhi) wrote2010-01-14 04:48 pm

toJSON on par with toString

I've been thinking lately... say, you are writing a pojo, and it is a good practice to have a good toString(), right? How about toJSON/fromJSON? seems like it would be a good idea to have it everywhere as well, what do you think?

[identity profile] xeno-by.livejournal.com 2010-01-15 11:33 am (UTC)(link)
By the way, this stuff with extension methods is a part of a global problem with C# 3.0 innovations. When used within LINQ scenarios, they play well and seem to be orthogonal additions to the language. But take a step aside - and you face all the ugliness.
wizzard: (Default)

[personal profile] wizzard 2010-01-15 02:54 pm (UTC)(link)
hehe. c# 2.0 was basically a direct mapping to CLR capabilities, but c# 3.0 went beyond that, that's why the discrepancies