22 ms·
I haven't found dynamism like that to be a problem. It's slightly more verbose, but not by much. Instead of `foo: int = unknown['foo']` like in Python, you do `
by gaganyaan 3y ago
I haven't found dynamism like that to be a problem. It's slightly more verbose, but not by much. Instead of `foo: int = unknown['foo']` like in Python, you do `let foo = unknown.get_u64('foo')?` (or something like that) in Rust with `serde_json`.
- PartiallyTyped 3y agoI didn't claim that it's a problem, just making your life slightly harder and needing to enumerate all enum cases in e.g. serde_json.
- junon 3y agoYou don't, though? I'm not sure what kind of code you're referring to. Can you give an example?