From f4c7db0ed96b985942a21e94496717ece0fc940e Mon Sep 17 00:00:00 2001
From: Russ Cox
+A "goto" statement outside a block cannot jump to a label inside that block. +For instance, this example: +
+ ++if n%2 == 1 { + goto L1 +} +for n > 0 { + f() + n-- +L1: + f() + n-- +} ++ +
+is erroneous because the label L1
is inside
+the "for" statement's block but the goto
is not.
goto
statements and targets (no intervening declarations) is not honored.len(a)
is only a constant if a
is a (qualified) identifier denoting an array or pointer to an array.nil
maps are not treated like empty maps.nil
channel causes a run-time panic.