We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow for pattern matching on struct types.
From a generic specification of
type T struct { done chan struct{} } func (t T) Terminate() { t.done <- struct{}{} }
be able to pattern match onto structurally similar, but extended structs, e.g.
type IntStep { In chan <- int Out <- chan int done chan struct{} }
This naturally leads to generic specifications on empty structs being applicable to all structs.
Possible application
type T struct{} func (t T) Json() string { //generic json encoding code }
The text was updated successfully, but these errors were encountered:
Merge pull request #1 from icholy/master
5ed8102
Update "astutil" import path.
No branches or pull requests
Allow for pattern matching on struct types.
From a generic specification of
be able to pattern match onto structurally similar, but extended structs, e.g.
This naturally leads to generic specifications on empty structs being applicable to all structs.
Possible application
The text was updated successfully, but these errors were encountered: