Skip to content
New issue

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

Add Equal to move.Move #224

Open
artasparks opened this issue Feb 6, 2021 · 0 comments
Open

Add Equal to move.Move #224

artasparks opened this issue Feb 6, 2021 · 0 comments
Assignees
Labels
Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers.

Comments

@artasparks
Copy link
Member

artasparks commented Feb 6, 2021

We should add an Equal method to move.Move. This allows us to use cmp.Equal

See

Note that Equal methods must have the following properties

If the values have an Equal method of the form "(T) Equal(T) bool" or "(T) Equal(I) bool" where T is assignable to I, then use the result of x.Equal(y) even if x or y is nil. Otherwise, no such method exists and evaluation proceeds to the next rule.

@artasparks artasparks added the Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers. label Feb 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Difficulty:DDK Double Digit Kyu Level. Describes a problem that is good for newcomers.
Projects
None yet
Development

No branches or pull requests

2 participants