Hacker News new | ask | show | jobs
by pcwalton 3563 days ago
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.'"