On Tue, Jul 9, 2019 at 2:00 PM Ian Davis <m...@iandavis.com> wrote: > It's quite a bit more than a just new function since it brings some new > behaviours that we don't have for functions in Go at the moment: > > 1. like panic it interrupts its caller's control flow > > 2. It may only be used within functions/methods that have a particular > signature. Presumably it's a compile error to attempt to use it elsewhere. > > 3. It accepts any number of mixed type arguments without boxing into an > interface{} >
try is not a new function, it's a new *built-in* function. The behaviours you are mentioning are normal for a built-in function. Robert Griesemer has already commented about this several times in the issue tracker, for example here: https://github.com/golang/go/issues/32437#issuecomment-509337453 -- 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/CAG3yVS4%2BmRzobDA_JQnzQ8%3DRBM6y2F9-mwnM2X0auJV9dX93Ug%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.