2 ms·
To allow lazy error checking without losing safety, perhaps Go could special case _ so that error codes assigned to _ abort for failure values.
by cpeterso 13y ago
To allow lazy error checking without losing safety, perhaps Go could special case _ so that error codes assigned to _ abort for failure values.
- nknighthb 13y agoI 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?
- coldtea 13y agoCould just be "!" by itself no?
- pcwalton 13y agoThey can't change that at this stage without breaking the Go 1.0 compatibility promise.