5 ms·
Not automatically. The absence of type annotations means a human needs to double check the refactoring. https://www.beust.com/weblog/2021/06/20/refactoring-a-d
by hota_mazi 5y ago
Not automatically. The absence of type annotations means a human needs to double check the refactoring.
https://www.beust.com/weblog/2021/06/20/refactoring-a-dynamically-typed-language-do-it-safely-or-automatically-but-not-both/ https://www.beust.com/weblog/2021/06/20/refactoring-a-dynami...
- wizzwizz4 5y ago> You might think it’s obvious that you need to rename both A.f and B.f, but that’s just because this snippet is trivial. In the general case, yes – but that's like saying “no termination analysis is possible because of the halting problem”. The IDE can safely refactor, unsafely attempt a refactor, and warn when it does the latter rather than the former. Though I didn't know PyCharm didn't do that! That's dangerous; thanks for the warning.