On Mon, Jun 29, 2020 at 7:28 PM Jake Montgomery wrote:
> I'm curious how you would propose rewriting:
> func Foo(type T comparable, B interface{})(a T, b B, c T) {
>
You could just annotate each distinct type on first appeareance:
func Foo(a T:type comparable, b B:type interface{}, c T) {
>
I'm curious how you would propose rewriting:
func Foo(type T comparable, B interface{})(a T, b B, c T) {
On Friday, June 19, 2020 at 6:57:45 PM UTC-4, mit...@gmail.com wrote:
>
> Hello, Ian,
>
> Would it be possible to have a generic type annotation syntax like this:
>
> // Print prints the ele