Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
gaganyaan
· 3y ago · 0 comments
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`.
Comments
[–]
PartiallyTyped
3y ago
I 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 ago
You don't, though? I'm not sure what kind of code you're referring to. Can you give an example?