On Wed, Jun 22, 2016 at 12:01 AM <raidopah...@gmail.com> wrote: > I have encountered some unexpected and inconsistent behavior with type switches. Can someone shed some light as to why Go behaves this way?
if a type switch case lists distinct types, one option is to reject such case - or allow it without the type being, case-wise, actually specialized. One can think about the "default" case in an analogous way. -- -j -- 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.