On Thursday, 4 July 2019 22:45:40 UTC+2, mh cbon wrote: > > > less stupid the oprator could infer various things based on static rules, > very much like value/ptr initialization implies a few static rules. > > on os.IsNotExist(err): <stmt> > on err == io.EOF: <stmt> > on err.(*os.PathError): <stmt> > > That starts to look like a switch statement, which is not a bad thing, in its own right. Maybe not what OP or follow-ups intended.
Lucio. -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/6874be1b-1ad2-4694-be02-bcd581e2c6db%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.