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
This isn't an issue with the library, but since discussions aren't enabled in the repo this was the only place I could see to discuss this. Feel free to close anytime!
We recently wrote about a macro technique that y'all would be able to take advantage of, if interested. As I'm sure you are well aware, currently if you stick a non-Equatable thing into a type that uses @Equatable, you get an error message hidden in the guts of the macro expansion instead of on the line that actually caused the problem. It is possible to fix this poor developer experience and emit diagnostics directly on the field that is not Equatable.
You can further use this technique to fix #32. You can detect when a field is an AnyObject and opt to compare it using === instead of == without forcing the user to conform their class to Equatable.
Feel free to disregard any of this, but just thought you might be interested in the technique!
Activity
supersonicbyte commentedon Oct 13, 2026
Hey @mbrandonw, thanks a lot for the suggestion! I've already opened up a PR that implements it. I think it will be a great improvement.
supersonicbyte commentedon Nov 18, 2026
Closing this since the suggestion has been adopted with: #42