Re:Rust – A hard decision pays off
by einpoklum on Friday August 26, 2022 @03:26AM
(#32604234)
With C++ lambdas, it's similar, but the syntax is a bit uglier:
and you can decide whether you want a value (no &'s), an lvalue reference (&), or a forwarding reference (&&). I think with C++20 you can also use a concept instead of auto for a constrained parameter type.
[ Parent
| on HN ]
There are no comments on this comment yet.