News for hackers. Stuff that matters.
Re:A lambda is not necessarily a closure by adrusi on Tuesday February 09, 2016 @01:27AM (#11063519)
Actually, even though in the language spec that usage is refered to as a "closure", when configured for a release build, that will compile to exactly the same code as if you had written a static funtion and passed a pointer to it.

Rust is very good at optimizing away closures to have as little overhead as is possible for the semantics they describe.

There are no comments on this comment yet.