Accessing a non-existent key in a map is no longer a run-time error.
It now evaluates to the zero value for that type. For example:
x := myMap[i] is now equivalent to: x, _ := myMap[i]
2. It is now legal to take the address of a function's return value.
The return values are copied back to the caller only after deferred
functions have run.
3. The functions panic and recover, intended for reporting and recovering from
failure, have been added to the spec:
In a related change, panicln is gone, and panic is now a single-argument
function. Panic and recover are recognized by the gc compilers but the new
behavior is not yet implemented.
Jhili, if this helps please login to Mark As Answer. | Alert Moderator