[Info-vax] openvms and xterm
Simon Clubley
clubley at remove_me.eisner.decus.org-Earth.UFP
Tue Apr 23 08:14:00 EDT 2024
On 2024-04-22, Dan Cross <cross at spitfire.i.gajendra.net> wrote:
>
> Eh, JSON has its own problems; since the representation of
> numbers is specified to be compatible with floats, it's possible
> to lose data by translating it through JSON (I've seen people
> put e.g. machine addresses in JSON and then be surprised when
> the low bits disappear: floating point representations are not
> exact over the range of 64-bit integers!).
>
I would consider that to be strictly a programmer error. That's the
kind of thing that should be stored as a string value unless you are
using a JSON library that preserves integer values unless decimal data
is present in the input data (and hence silently converts it to a float).
I don't expect people to write their own JSON library (although I hope
they can given how relatively simple JSON is to parse), but I do expect
them to know what values they can use in libraries in general without
experiencing data loss.
Simon.
--
Simon Clubley, clubley at remove_me.eisner.decus.org-Earth.UFP
Walking destinations on a map are further away than they appear.
More information about the Info-vax
mailing list