orangy
receiver::f(_, _, value, _, complex.expression())
, or with the use of named arguments receiver::f(paramName = value)
. I don’t see a good syntax for unbound receiver though, because ::f
is already reserved for functions without receivers.Ruckus
01/11/2018, 8:11 PM_::f(all, the, bindings)
?ilya.gorbunov
01/11/2018, 8:15 PMReceiverType::f
Ruckus
01/11/2018, 8:16 PMorangy
ilya.gorbunov
01/11/2018, 8:19 PMf
, if it is a member or extension function. However probably that could be inferred from usage.orangy
ilya.gorbunov
01/11/2018, 8:21 PMstrings.map(_::toUpper)
instead of strings.map(String::toUpper)
, but not val f = _::toUpper
orangy
_
is for unused, it is not unused hereilya.gorbunov
01/11/2018, 8:23 PM_
is for unused in parameter lists. However, there was a related proposal to use _
as default value in argument lists