Hacker News new | past | comments | ask | show | jobs | submit login

You can improve the non-method syntax slightly by using option.Map in Go style. But it still isn't as nice as a method.

I think type parameters of methods will definitely get added since it's so standard and if anything more confusing to not have them.




Yeah, it's a little nicer that way, but methods would be ideal IMO.




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

Search: