Join Slack
Powered by
Why is the `crossinline` keyword required ? Is it ...
# announcements
t
tseisel
06/03/2019, 9:36 AM
Why is the
crossinline
keyword required ? Is it a real language feature, or rather a technical limitation of the compiler ?
g
gildor
06/03/2019, 9:38 AM
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
gildor
06/03/2019, 9:40 AM
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
d
Dico
06/03/2019, 10:03 AM
It is also used to indicate that returns from the lambda will be invalid
👍 1
5
Views
Open in Slack
Previous
Next