Without looking at the larger string serialization problem (#116), I wanted to discuss whether the string form should differentiate between String, Number, and BigInt (and arrays thereof). Maybe BigInt could use n instead of e+0.
For example, currently we have: [1e0 ~]
How about:
[1e0 ~] = new Amount(1e0, null)
[1n ~] = new Amount(1n, null)
[1e0s ~] = new Amount("1e0", null)
Without looking at the larger string serialization problem (#116), I wanted to discuss whether the string form should differentiate between String, Number, and BigInt (and arrays thereof). Maybe BigInt could use
ninstead ofe+0.For example, currently we have:
[1e0 ~]How about:
[1e0 ~]= new Amount(1e0, null)[1n ~]= new Amount(1n, null)[1e0s ~]= new Amount("1e0", null)