Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> 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.



I tend to write custom parsers for jsoniter in this case so that I catch any unexpected data types as early as possible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: