Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
lpribis
· 2mo ago · 0 comments
Sure, but in that case they are equivalent to a static function so there's no benefit of lambda other than syntax sugar.
Comments
[–]
6yyyyyy
2mo ago
The benefit is that you don't have to solve one of the hard problems in computer science (naming things).
[–]
moxxymiller
2mo ago
Capturing lambdas in a language without a GC (or a borrow checker) are kinda fraught with footguns.
[–]
uecker
2mo ago
This is not my experience.