I think explicitly specifying Dynamic or a particular type would be great for json/xml parsers. There are certain reasons not to do this in std?
I think it’s just because Any
came later than Json.parse
and noone wanted to break backward-compatibility. I remember @ncannasse at that time was in favor of adding an #if
flag to make standard library types use Any
instead of Dynamic
, but I don’t know if that opinion still stands
1 Like