For Go 2 I mentioned adding multiple cases or fallthrough for select here: https://github.com/golang/go/issues/23196
Matt On Thursday, July 11, 2013 at 12:52:15 AM UTC-5, Johann Höchtl wrote: > > On 10.07.2013 22:50, Rob Pike wrote: > > As far as the select is concerned, what you have is right. > Thanks for clarifying. > > A slightly different, less custom way to do this is to provide a general > error > > helper: > > > > func noError(err error) { > > if err != nil { > > logger.Panicln(err) > > } > > } > > > > then you can write > > > > case <-urlchange: > > noError(analyser.populatedatasetinfo()) > Good to know, haven't thought about that usage pattern! > > and likely use the helper function in other contexts. > > > > -rob > > -- 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. For more options, visit https://groups.google.com/d/optout.