/cc the list this time :/
On 29/06/2014 10:32 am, "David Barri" <
japg...@gmail.com> wrote:
>
> Can you clarify what you mean by arbitrary precision? Is that the plan to carry numbers around as strings instead of doubles and have codecs parse them? Do you have an idea as to when this will happen?
No we are going to change the data type and you will optionally be
able to use more precision. But there are awkward security
ramifications if you are not careful.
> Also, are you saying there's no way as it stands to generate {id:1} instead of {id:"1"} with Argonaut? That's shocking, if so.
You can, you just have to do it yourself as it is neither safe
(overflows) or portable (violates all by the current draft spec and is
not interoperable with any js impl). To do it, just write an encode
that maps your type to jNumber and decide what to do with overflow.
Cheers
Mark