Why is the `crossinline` keyword required ? Is it ...
# announcements
Why is the
keyword required ? Is it a real language feature, or rather a technical limitation of the compiler ?
it’s to be explicit, that this lambda cannot be inlined by itself (in most cases because you pass it to some other non-online function)
👍 1
without this it may case cases when you think that lambda is inlined (because function is), but it’s not true, because instance still required
It is also used to indicate that returns from the lambda will be invalid
👍 1