by feduzi · 9y ago · 0 comments
* JSON String -> NIM String
* JSON Object -> NIM Hash
* and so on...
I've also had the same question when looking at https://crystal-lang.org.
PS: I do not claim Nim's type system to be bad as I do not have an exact counterexample of a "better" type system.
let s = parseJson("{'A': 'foo'}")
s["A"] # What type is this? We don't know until we parse the JSON.