News for hackers. Stuff that matters.
Re:Greppability is an underrated code metric by dan-robertson on Tuesday September 03, 2024 @02:24AM (#41431866)
Not sure this is very true for Common Lisp. Classic example are accessor functions where the generic function is created by whichever class is defined first and the method where the class is defined. Other macros will construct new symbols for function names (or take them from the macro arguments).
Re:Greppability is an underrated code metric by f1shy on Tuesday September 03, 2024 @02:30AM (#41431897)
Still you can extend the concept without a lot of work, couldn't you?
Re:Greppability is an underrated code metric by db48x on Tuesday September 03, 2024 @07:02AM (#41433573)
That’s true, but I regard it as fairly minor. Accessor functions don't have any logic in them, so in practice you don’t have to grep for them. But it can be confusing for new players, since they don't know ahead of time which ones are accessors and which are not.