Only you're not doing that here. If anything, it's the inverse.
>But regardless of the bad design of Go around the usage of "nil", the code would have failed in pretty much any other language anyway.
In other languages the interface can be null as a value even if the interface has a not-null type.
Only you're not doing that here. If anything, it's the inverse.
>But regardless of the bad design of Go around the usage of "nil", the code would have failed in pretty much any other language anyway.
In other languages the interface can be null as a value even if the interface has a not-null type.