3 ms·
> That doesn't seem like an unreasonable way to draw the lines. It's a turing tarpit otherwise, after all. Regarding C++, I've not used the newer versions, bu
by white-flame 9y ago
> That doesn't seem like an unreasonable way to draw the lines.
It's a turing tarpit otherwise, after all.
Regarding C++, I've not used the newer versions, but using that feature to capture only copies would match what I said upstream, as a limited usage of closures that would happen to match objects, while closures themselves can do more. Capturing by copy also means that it's instantiating a new closure variable slot specific to the copy, and is no longer closing over the original variable, so it's an additional step on top of the fundamental closure mechanism which would by nature be agnostic to private vs shared variable slots.