On 12.07.2013 09:13, Jesse McNelis wrote:
> This is true it's a bit pointless, I believe the behaviour is due to
> avoiding bugs created by people that expect 'break' to work on the
'switch'
> since this is common in other languages.
As far as I understood, it's not pointless, as you can't conditionally
fall through without it:
http://play.golang.org/p/Ibxvm4soLL
break can be everywhere, fallthrough can only appear as last statement.
Christian