News for hackers. Stuff that matters.
Re:Porting the Go compiler from C to Go by coldtea on Friday April 25, 2014 @02:11PM (#7648128)
>I don't see how having the type makes it easier to grep, grep finds the function name regardless

It's not about finding the function name in general, it's about finding where the function is actually declared -- not in the call sites.

>You can also search for something like "\w+\s(.?)\s{"*

Yeah, or use ctags. That's why they said "simpler".

"^foo" beats that.

Re:Porting the Go compiler from C to Go by raverbashing on Friday April 25, 2014 @02:30PM (#7648246)
Yeah, ctags is a good choice

> "^foo" beats that

because it's so hard to use ctags...

Re:Porting the Go compiler from C to Go by clarry on Friday April 25, 2014 @03:03PM (#7648448)
So how do you use ctags with grep?
Re:Porting the Go compiler from C to Go by coldtea on Friday April 25, 2014 @04:11PM (#7648775)
It needs setup. I'd rather just grep.