Skip to content

spec: receiver-curried method expressions #2280

@bradfitz

Description

@bradfitz
We have method expressions of form Type.Method.

This is a wishlist bug for method expressions that curry the receiver, of form
receiver.Method.

type A struct {
   // ...
}

func (a *A) Foo(bar, baz int) {}

b := new(A)
foob := b.Foo  // foob is of type func(int, int)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions