4 ms·
> on the 100th or so Python stacktrace Go's not perfect in this respect, either. I had your typical map[string][]interface{}, because the data in the map was a
by tgv 7y ago
> on the 100th or so Python stacktrace
Go's not perfect in this respect, either. I had your typical map[string][]interface{}, because the data in the map was an array of records, but different records in different cases, and made an error in an append(), so ended up with nested arrays. That's correct according to the type definitions, but unwanted. Generic could have helped here. So I think the language still needs to grow a bit.
- dx034 7y agoI tend to write custom parsers for jsoniter in this case so that I catch any unexpected data types as early as possible.