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

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)



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


Maybe I like the pain and I don't know it, but the overall DX is why I keep coming back to Go.


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


I 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!




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

Search: