7 ms·
I too have a list of things I want to add to Go. For some reason, my list and OPs list are completely disjoint. My wishlist is: 1. Add the ? operator is a sho
by daghamm 2y ago
I too have a list of things I want to add to Go. For some reason, my list and OPs list are completely disjoint.
My wishlist is:
1. Add the ? operator is a short hand for if err != nil { return ..., err }
2. Allow member functions to have generic parameters (in addition to the struct parameters)
- mervz 2y agoStreamlining the awful error handling would seriously make the developer experience SO much better... but this is Go, where developer experience comes dead last in priority.
- jessekv 2y agoMaybe I like the pain and I don't know it, but the overall DX is why I keep coming back to Go.
- daghamm 2y agoIn general Go DX is fantastic. But having done some Rust development lately, I really miss the ? thing every time I go back to golang. It's such a small change and purely syntactic but ould make ones code much shorter and maybe even more readable.
- jessekv 2y agoI suspect the reason why so many people are passionate about Go language features is that, if it only had their one pet feature, it would be the perfect language. But I agree that the error handling could be better!