Like Go/Rust, why not to have "func" keyword before function declaration

Joakim via Digitalmars-d digitalmars-d at puremagic.com
Tue Jan 20 10:37:11 PST 2015


On Tuesday, 20 January 2015 at 00:13:37 UTC, Brian Schott wrote:
> On Monday, 19 January 2015 at 22:49:41 UTC, Ary Borenszweig 
> wrote:
>> So... how do you search for a function definition in D without 
>> an IDE?
>
> Running `dscanner --help` prints this:
>
> --declaration | -d symbolName [sourceFiles sourceDirectories]
>     Find the location where symbolName is declared. This should 
> be more
>     accurate than "grep". Searches the given files and 
> directories, or the
>     current working directory if none are specified.

^^^^^
THIS!

I agree with Ary that grep hits a lot of false positives and all 
the formatting tricks don't work with other people's code, plus 
I've never liked IDES.  Dscanner's D declaration finder has 
become indispensable in the short time I've been using it, to the 
point where I dread going back to searching for C declarations 
and getting stuck with grep again.


More information about the Digitalmars-d mailing list