2 ms·
An AST for you favourite language is readily availble so get one and go nuts. I am sure in 2006 or so I was doing "extract method" in Resharper. And Lispers pr
by ndjdjddjsjj 2y ago
An AST for you favourite language is readily availble so get one and go nuts.
I am sure in 2006 or so I was doing "extract method" in Resharper. And Lispers probably doing it for centuries ;)
- Philpax 2y agoThe fascinating part isn't that it can modify code accordingly to some rules - it's that it can modify code from _arbitrary_ languages without having a grammar or semantic analysis for them.
- ndjdjddjsjj 2y agoI think the tool has some grammar info: C, C++, C#, Java, Go, JS are similar. And that is enough when: 1. Most code in a code file is irrelevant to whatever specifc bug is being looked at. 2. It is removal of code at play not writing code.