News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by kragen on Tuesday September 03, 2024 @07:33AM (#41433818)
that's going to find all the functions that take an argument named lart or of a lart type too, but it also sounds like a thing i really want to try
Re:Greppability is an underrated code metric by vitus on Tuesday September 03, 2024 @07:50AM (#41433964)
Also, anything that contains "func" and "lart" as a substring, e.g. foobar(function), blart(baz).

It's not far off from my manually-constructed patterns when I want to make sure I find a function definition (and am willing to tolerate some false positives), but I personally prefer fine-grained control over when it's in use.

Re:Greppability is an underrated code metric by medstrom on Tuesday September 03, 2024 @08:04AM (#41434100)
Mmh, I type "func\ lart(" when I need the literal string. But it's less often, so it's fair that it's slightly more to type.
Re:Greppability is an underrated code metric by kragen on Tuesday September 03, 2024 @08:12AM (#41434156)
yeah!