Language Notes
Commas in Expression Case Statements
The use of comma in case statements work for expression:
If x
is 1 or 2, the x < 3
will be printed out.
Lookups On A Nil Map
You can do lookups on a nil
map:
The result will simply be the zero value of the particular type. In this case x
will be the empty string.
Last updated