On 13 Oct 2015 at 18:33:01, Timur (
timur...@gmail.com) wrote:
> > Why did you opt for converting them as plain strings but not keyword
> strings, e.g., "string" instead of ":string". They are at the
> end not strings but keywords :)
Right, so consider this: you have a map with two keys:
{:a “:a” :b :b}
which, once you load it from MongoDB, would look like
{:a “:a” :b ":b”}
Now, how do you know which value was originally a string and which was a keyword?
That’s what I mean when I say «we are unwilling to try attaching
"metadata" to such values to be able to reconstruct them back to keywords after deserialisation.»
Storing language-specific values in a data store is not a very wise idea. It *will* trip you up,
the question is when, not if.
--
@michaelklishin,
github.com/michaelklishin