2 ms·
You can unmarshall a JSON document into a map (map[string]interface{}) or implement some interface and unserialize JSON "by hand" with a method. Go type system
by aikah 11y ago
You can unmarshall a JSON document into a map (map[string]interface{}) or implement some interface and unserialize JSON "by hand" with a method.
Go type system is flat so it's often hard to express something without being tempted to "opt-out" from its rigid type system.
The question is, is Go type system a good compromise between simplicity and expressiveness ?
I guess language design is hard, because the competition (Nim,Rust,...) also have its share of issues.