I would either use Scalafix or override the method and use an IDE to find all usages.
-
-
-
I had been considering something like the latter. If Metals does that reliably, that would be great. :)
- Show replies
New conversation -
-
-
i usually use a regex + inline editing of matches via http://github.com/cosmicexplorer/helm-rg … for this and it’s fun to think of how i might do that more hygienically >=]
-
Yeah, I use grep a lot. It's always an option...
- Show replies
New conversation -
-
-
Override one in MyType and annotate with @compileTimeOnly ?
-
Oh, that's an intriguing solution!
- Show replies
New conversation -
-
-
Rename the definition of `MyType` to something else; that will break all usages of `MyType#equals` and the compiler should show you all the places.
-
Maybe I'm not understanding correctly, but that sounds like it will break all usages of `MyType`, which outnumber usages of `MyType#equals` by a couple of orders of magnitude...
- Show replies
New conversation -
-
-
Can a macro find Eq a implicitly and replace codegen of == for it or default to equals when not found? Same for Order and other operators like >, <, ...?
-
Would that be an annotation macro? I think it probably could... Alternatively, a compiler plugin could do it. Order operators are a bit easier, because they're not on every single object, and the types they do exist for usually have the implementation you always want...
- 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.