News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by ljm on Tuesday September 03, 2024 @06:28AM (#41433353)
Can’t say I’ve ever had an issue with it, but it does get a bit wild when you have a function signature that takes a function and returns one, unless you clear it up with some types.

  func (s *Recv) foo(fn func(x any) err) func bar(y any) (*Recv, err)
As an exaggerated example. Easy to parse but not always easy to read at a glance.

There are no comments on this comment yet.