https://kotlinlang.org logo
#language-proposals
Title
# language-proposals
o

orangy

01/11/2018, 7:50 PM
Okay, if this, then if we can infer parameter types for lambdas so this works:
Copy code
val getPremiumWithTotal = { cc -> CreditCard.getPremium(creditCards.size, cc) }
will it be sufficient? Not much more than a single and to my taste confusing
_
after something that looks like a function call
r

Ruckus

01/11/2018, 7:58 PM
I think this is a good idea regardless of the PA aspects, as stronger type inference is always good (so long as it doesn't lead to surprising results), but I think it would indeed solve this problem rather elegantly.
3 Views