Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
joostdevries
· 7y ago · 0 comments
I agree. Naming parts of your code is important. An alternative to named local vals is to either use named functions instead of lambdas: people.filter(olderThan50) or (I use Kotlin) use named extension functions: people.countOlderThan50()
Comments
[–]
splittingTimes
7y ago
In any nontrivial application, doing this for many of your types, does this not bloat your API considerably, which adds to the cognitive load?