26 Sep
2020
26 Sep
'20
12:37 p.m.
On Fri, 25 Sep 2020 at 23:55, Vinnie Falco via Boost
So, I think at some point I will want to introduce options for serialization, and one of the options could be the treatment of integers outside the range ~+/-2^53. We could:
1. serialize them as-is (current implementation) 2. serialize them as the nearest representable IEEE double 3. throw an exception
I know some people might find #3 weird, I'm open to feedback.
What's the problem with storing it as a string or as an arbitrary number when it's not representable as int64 or a double? It doesn't cost anything to do this, it's a pure extension with no impact on people that don't need it.