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

I'm not saying you should use Rust! I'm saying that Go should add try.


I was one of the many who argued strenuously that they not add try(). I spent an entire day writing up my reasons who I posted to the ticket on GitHub.

Bottom line, try() had too many flaws — especially related to consistency with the rest of Go — to be an appropriate addition to the Go language.

Adding try() to Go would be like adding a disco ball to the Sistine Chapel. Sure, disco balls have their place, but some places are just not appropriate for disco balls.

Or as Yoda says:

"Do or do not. There is no try." (Fortunately!)




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

Search: