Is it a new thing in K2 that lambda parameters are...
# intellij
m
Is it a new thing in K2 that lambda parameters are by default inferred from the context (not 100% sure what the rule is)? Instead of before it would not prefill a parameter name so I could just use
it
everywhere?
👍 2
Seems a bit verbose for simple
.map{}
or
.filter {}
and my brain is resisting this change but maybe it's for the greater good?
w
Removing the explicit parameter requires deleting the default selection and also the arrow.
just fyi, I'm pretty sure there's an intent to replace the named argument with an
it
. Maybe it's missing in K2
m
Nope, you're right, it's there I'll edit
a
completion should not insert explicit lambda parameter at the first place. It actually annoys us as well
6
w
Yeah yeah agreed, I was just referring to Martin's point in the issue that removing the named argument is more difficult, while there's IDE support for both.
thank you color 2