Join Slack
Powered by
Is the idiomatic way to call nullable lambdas `lam...
# codingconventions
l
Luke
07/19/2018, 5:37 PM
Is the idiomatic way to call nullable lambdas
lamdba?.invoke()
?
f
fatih.yalmanbas
07/20/2018, 11:13 AM
I’d not have nullable lambda in the first place
Copy code
fun foo(init: Bar -> Unit = {}) { }
sounds better
fatih.yalmanbas
07/20/2018, 11:13 AM
If that conforms your use-case
2
Views
Open in Slack
Previous
Next