3 ms·
I really like Go, and I tend to prefer it to JS for server-side stuff, but when I use it there are a lot of things I miss about JS: - Error handling is onerous
by jakelazaroff 3y ago
I really like Go, and I tend to prefer it to JS for server-side stuff, but when I use it there are a lot of things I miss about JS:
- Error handling is onerous; I write a lot of functions where most of the lines are just checking for and returning `err`
- No anonymous structs, and it’s really awkward to define structs inline
- Dealing with collections is really verbose; I guess since generics dropped I could handle this in userland, but it’s not idiomatic
etc etc. No language is perfect!
- andrewfromx 3y agoI think u might like my "go on rails" framework: https://many.pw/sd/ https://many.pw/sd/ I make heavy use of map[string]any vs structs. I also find the right balance of checking err vs just making it _