Hacker News new | ask | show | jobs
by judemelancon 3654 days ago
Why would I ever want to find every reference to a loop or lambda variable with a given name in a file? Such variables repeat frequently with distinct meanings, and each has a narrow scope.

In any case, I wouldn't use an IDE that was so glitchy unless I was forced by necessity; I certainly wouldn't adopt a coping mechanism for it into other languages. Also, for a typical compiled language, deleting the declaration gives you all usages as long as you can (attempt to) build.

Are there any other reasons? Edit: Is this advice perhaps intended to be specific to a particular context?