2 ms·
Only some languages can readily support such features. For example C has a preprocessor and linking step driven by a build system. And C has a bunch of differe
by michaelt 7y ago
Only some languages can readily support such features.
For example C has a preprocessor and linking step driven by a build system. And C has a bunch of different build systems available, some of which are procedural rather than declarative.
Maybe you'll need to support package management - if a function signature calls for a CopyOnWriteArrayList do you need to know what the subclasses and superclasses of that type are? Do you need to resolve all the dependencies to be able to do that?
If you're thinking "No problem, everyone compiles their programs in CI anyway" - are you happy to skip indexing unused code and uncompileable code?
And of course you'll be chasing after language and build tool changes - not only to one language, but every language.
On the other hand, a nice simple grep? Sounds much simpler to me.