One of Kotlin’s wildest features: you can define control flow altering functions using lambda expressions with a special syntax. Thanks to aggressive inlining it’s basically free. #kotlin
28 reposts489 likes
One of Kotlin’s wildest features: you can define control flow altering functions using lambda expressions with a special syntax. Thanks to aggressive inlining it’s basically free. #kotlin
28 reposts489 likes
See also Jensen’s Device. Call by name is widely impractical. The things you do when you are the first on the block. en.wikipedia.org/wiki/Jensen%...
I "ported" it to ES5 (almost) js to illustrate it clearly bsky.app/profile/turb...
I don't understand how this is a control flow. It looks like plain old higher order function calling with some syntax sugar.