You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is no easy way to compare two collections of Things.
It is not hard to write a loop by hand that does it, and reflect.DeepEqual could be used. However, gen is harder to use without a generated Equals method.
Also, the generated code will be compile-time type checked, so will run ever so slightly faster than the reflect approach.
The text was updated successfully, but these errors were encountered:
There is no easy way to compare two collections of Things.
It is not hard to write a loop by hand that does it, and
reflect.DeepEqual
could be used. However,gen
is harder to use without a generatedEquals
method.Also, the generated code will be compile-time type checked, so will run ever so slightly faster than the reflect approach.
The text was updated successfully, but these errors were encountered: