5 ms·
My instinct is this would get hairy much faster if you want to actually close over variables compared to using a block.
by saghm 11mo ago
My instinct is this would get hairy much faster if you want to actually close over variables compared to using a block.
- loeg 11mo agoIf the verbose return type syntax can't be elided, I think it's more or less dead as a pattern.
- ahartmetz 11mo agoNot sure if that is relevant to your point, but: For better and for worse, closing over any outer scope variables is syntactically free in Rust lambdas. You just access them.