← Back to context

Comment by ramraj07

1 month ago

Not coding agents but we do a lot of work trying to find the best tools, and the result is always that the simplest possible general tool that can get the job done always beats a suite of complicated tools and rules on how to use them.

Well, jump to definition isn't exactly complicated?

And you can use whatever interface the language servers already use to expose that functionality to eg vscode?

  • It can be: What definition to jump to if there are multiple (e.g. multiple Translation Units)? What if the function is overloaded and none of the types match?

    With grep it's easy: Always shows everything that matches.

    • Sure, there might be multiple definitions to jump to.

      With grep you get lots of false positives, and for some languages you need a lot of extra rules to know what to grep for. (Eg in Python you might read `+` in the caller, but you actually need to grep for __add__ to find the definition.)