Hacker News new | ask | show | jobs
by TheDong 3234 days ago
That, in fact, is the normal case which is why people are surprised by typed nils.

For example:

    func returnsNil() error { return nil }

    x := returnsNil()
    // x is of type nil and value nil.