News for hackers. Stuff that matters.
Re:Some notes on Rust by mike_hearn on Monday February 02, 2015 @06:19AM (#8983661)
Kotlin has a notion of function inlining with the return statement being inlined too. This means you can do, e.g.:

list.forEach { if (it == something) return; }

and you aren't returning from the code block, but the enclosing function. Yet behind the scenes forEach is being expanded by the compiler into a regular imperative for loop, in a macro-like way.

There are no comments on this comment yet.