> > I think grep is always a last resort tool as it doesn't understand any 
> > programming language...
> 
> [...] Many modern languages are easy to grep since they prefix declarations 
> with a keyword but in Nim this is slightly harder, I'm not advocating to 
> change the language for this, just that it might be worth to guide new users 
> with best practices to navigate a Nim code base.

Perhaps I am misunderstanding you here, but AFAIK Nim does prefix declarations 
with keywords:
    
    
    proc myProcedure(): int = 42
    var myVar = 42
    let myLet = 42
    const myConst = 42
    
    
    Run

All are prefixed by a keyword, so you can grep for `"proc myProcedure"` and 
find the definition of `myProcedure`.

Reply via email to