Re:Go Contracts – Draft Design
by yorozu on Monday July 29, 2019 @11:23AM
(#20555513)
> Type assertions and switches
I find it especially unorthogonal that you can type switch on generic parameters like they are interfaces. If I have a method that takes interface parameters, should I just always use generic (unboxed) parameters instead?
I find it especially unorthogonal that you can type switch on generic parameters like they are interfaces. If I have a method that takes interface parameters, should I just always use generic (unboxed) parameters instead?