News for hackers. Stuff that matters.
Re:A lambda is not necessarily a closure by tatterdemalion on Tuesday February 09, 2016 @12:49AM (#11063391)
> You'd like for this to optimize down to a function call, without saving any state from the outer scope. Don't know if Rust does this yet.

My (limited) understanding is that all bindings closed over by a closure are represented as anonymous struct passed to the function, if nothing is closed over that will be a unit struct which will of course be optimized to nothing.

There are no comments on this comment yet.