3 ms·
I'm not sure that "less flexible" is accurate; we can accomplish the same things, but through different means.
by steveklabnik 10y ago
I'm not sure that "less flexible" is accurate; we can accomplish the same things, but through different means.
- masklinn 10y agoIt might have been unclear, but I meant the closure syntax/capture itself is less flexible. You can get the same result e.g. using a move closure and declaring references outside the closure then capturing that by value, but I'm sure you could also do that in C++.
- steveklabnik 10y agoAh, yes. Cool :)