|
|
|
|
|
by olivermuty
954 days ago
|
|
Elixir dev here, just to put the context in place first hehe. Couldn’t that thing be typed as the web format? A nested set of string props with either string or number types in the leaves. Then use those types to traverse and pull into «real» types? I like to put structured data into structs in elixir too and the above is essentially what I would do in Elixir. I don’t know rust well enough to see if I am missing some nuance |
|
But then, you are basically throwing out your static type checks and just using it as a dynamic language, but with much more verbosity, cruft and additional ways to should yourself in the foot.