13 ms·
Sure, but in that case they are equivalent to a static function so there's no benefit of lambda other than syntax sugar.
by lpribis 8d ago
Sure, but in that case they are equivalent to a static function so there's no benefit of lambda other than syntax sugar.
- 6yyyyyy 8d agoThe benefit is that you don't have to solve one of the hard problems in computer science (naming things).
- moxxymiller 8d agoCapturing lambdas in a language without a GC (or a borrow checker) are kinda fraught with footguns.
- uecker 7d agoThis is not my experience.