[Development] JSON 64 bit int
Thiago Macieira
thiago.macieira at intel.com
Wed Feb 11 17:50:29 CET 2015
On Wednesday 11 February 2015 12:12:33 Bo Thorsen wrote:
> If I say to my customers they have to send me another language because
> the Qt JSON library can't read 64 bit unsigned integers they say "Qt
> sucks, switch to another JSON library.". We can't win here.
What's to stop someone at 64-bit? What if someone has a bad generator that
suddenly starts outputting 65-bit numbers or bigger?
It could be as stupid a bug as the y2k:
printf("%d/%d/19%d", d.tm_day, d.tm_month + 1, d.tm_year);
Which suddenly started printing "19100".
Similarly, what if someone is using an 80-bit extended precision FP and writes
that? Are we expected to keep the precision?
We also had a discussion recently of someone using '' instead of "" for
quoting strings.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Development
mailing list