Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Using Grep or regex is textual refactoring. If you want to rename every reference to a type Foo, how do you is that without touching any variables named foo, or any classes named FooBar

The answer is use tools that have semantic info to rename things.



I often want them to rename all the textual references too because otherwise you have bunch of variables using the old name as a reference.

Even though it has no semantic significance to the compiler, it does for all the human beings who will read it and get confused.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: