Y
Hacker News
new
|
ask
|
show
|
jobs
by
lpribis
84 days ago
Sure, but in that case they are equivalent to a static function so there's no benefit of lambda other than syntax sugar.
2 comments
6yyyyyy
83 days ago
The benefit is that you don't have to solve one of the hard problems in computer science (naming things).
link
moxxymiller
83 days ago
Capturing lambdas in a language without a GC (or a borrow checker) are kinda fraught with footguns.
link
uecker
83 days ago
This is not my experience.
link