Open prabhjots opened 1 week ago
Yes, IEdn is the right way to do this. I should probably document it.
However, I think you may want to avoid losing precision by doing something like this:
#?(:cljs
(extend-protocol IEdn
goog.math/Long
(-edn [x]
(tagged-literal 'goog/long (.toString ^goog.math/Long x)))))
goog.math/Long
is not showing up very wellIt evaluates to the following
Problem gets fixed by using the
IEdn
protocolIs using the
IEdn
protocol is the right approach for this problem. If yes then please consider documenting theIEdn
protocol in the readme.