The break keyword terminates execution of a select statement, but is there
any real use for break in a select / case statement?
The select statement executes one of its cases that can proceed or the
optional default statement and then program execution continues after the
select {...} block. Since the select statement will complete after a case
or default completes what reason is there to use break in a case or
default? I can't think of one.
Using break in a select / case statement seems pointless.
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/golang-nuts/2fb600cf-c235-4548-a3b6-593db94792e3n%40googlegroups.com.