-
Notifications
You must be signed in to change notification settings - Fork 92
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
problem: Equals interface #143
Comments
One way is to ensure that there is always a fixed variable name on the left, which I originally had, like |
Hi @elliotchance nice thought have just come to my mind, as I'm thinking, Perhaps the easiest way to solve all these problems is generating equals method by default for each type. Summarize my proposal, In my opinion your solution will crush out many problems, but probably it doesn't the best way. |
@zhiburt I have a few objections to this:
|
As you may know there's issue #39
Problem: If you create Equals method and use it anywhere in methods generator replace that expression.
example
when you call go generate expression
!ss.Equals(rhs)
will be replaced on!(ss != rhs)
I consider for solving this one, should check type of element which call
Equals
but might there be a better solution.The text was updated successfully, but these errors were encountered: