[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Improving JSON pretty printing, how to represent floats?
From: |
Dmitry Gutov |
Subject: |
Re: Improving JSON pretty printing, how to represent floats? |
Date: |
Fri, 5 Apr 2024 16:37:04 +0300 |
User-agent: |
Mozilla Thunderbird |
On 05/04/2024 12:39, Herman, Géza wrote:
What would be the best representation for numbers in this case? I'm
thinking about using symbols, but I'm not sure this is the best
approach. The parser/encoder would have a new keyword parameter, like
":numbers-as-symbols t". If this is specified, then numbers wouldn't be
parsed, but kept as symbols. What do you think, is this a good approach?
Why not just use strings? Bignum implementations in various libs (other
languages) often use strings in constructors.
Interning numbers in obarray doesn't seems like too great an idea.
- Improving JSON pretty printing, how to represent floats?, Herman , Géza, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Eli Zaretskii, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Mattias Engdegård, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Herman , Géza, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Eli Zaretskii, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Herman , Géza, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, tomas, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Eli Zaretskii, 2024/04/05
- Re: Improving JSON pretty printing, how to represent floats?, Herman , Géza, 2024/04/05
Re: Improving JSON pretty printing, how to represent floats?,
Dmitry Gutov <=
Re: Improving JSON pretty printing, how to represent floats?, Mattias Engdegård, 2024/04/05