3 ms·
Any statically typed language benefits greatly from an IDE, if only for the automatic refactoring. Dynamically typed languages can hardly be automatically refa
by hota_mazi 5y ago
Any statically typed language benefits greatly from an IDE, if only for the automatic refactoring.
Dynamically typed languages can hardly be automatically refactored.
- wizzwizz4 5y agoI don't like PyCharm, but it can certainly refactor Python programs. What are you talking about?
- hota_mazi 5y agoNot 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.