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

To allow lazy error checking without losing safety, perhaps Go could special case _ so that error codes assigned to _ abort for failure values.


I would love something like this, actually.

I'm not sure I like the idea of special casing _ specifically, but a similarly concise way of saying "if this fails, this thread of execution is FUBAR" would be great.

"!!", maybe?


Could just be "!" by itself no?


They can't change that at this stage without breaking the Go 1.0 compatibility promise.




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

Search: