On Mon, Dec 19, 2022 at 12:25 PM Axel Wagner
wrote:
>
>
> On Mon, Dec 19, 2022 at 8:31 PM Red Daly wrote:
>
>> Methods cannot take type arguments, so I find myself writing `func Foo(o
>> Object) {...}` instead of `func (o Object) Foo()` in cases where Foo needs
>
Methods cannot take type arguments, so I find myself writing `func Foo(o
Object) {...}` instead of `func (o Object) Foo()` in cases where Foo needs
a type parameter.
I would like some type of pseudo-method in Go similar to Kotlin's extension
methods. Made up syntax:
```go
package foo
func (o
Have the authors considered the implications of requiring the `type`
keyword to use a generic type, not just at declaration time? Would this
open up more syntax possibilities, such as `var x T`? This might
be easier to read at the expense of five more characters of typing. It also
could