If I wanted to find every usage of `MyType#equals` in my codebase (because I want to replace it with `Eq`) what would be a good way to do that?
-
-
Yeah I was thinking that a mode for most FP programs would be that if you provide or auto derive a cannonical Eq, Order, Semigroup, etc then the use of the type class won't require different syntax from what people already now since those are the lang operators already.
-
That's a good point. I don't want to have to remember to write `===` (or something similar). But I think I'd still need to remember the macro annotation everywhere. A compiler plugin could avoid that, though. (At which point, I begin to lose some interest... ;) )
- Show replies
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.