Re:Having fun with Go's nil, interfaces and errors
by pcwalton on Saturday September 17, 2016 @05:29PM
(#12522556)
Go has the same complexity. From the Go spec: "For an expression x of interface type and a type T, the primary expression x.(T) asserts that x is not nil and that the value stored in x is of type T.'"
[ Parent
| on HN ]
There are no comments on this comment yet.