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
mbonnin
10/21/2024, 12:24 PM
Seems a bit verbose for simple
.map{}
or
.filter {}
and my brain is resisting this change but maybe it's for the greater good?
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
mbonnin
10/21/2024, 1:25 PM
Nope, you're right, it's there ✅ I'll edit
a
Anna Kozlova
10/21/2024, 1:25 PM
completion should not insert explicit lambda parameter at the first place. It actually annoys us as well
➕ 6
w
wasyl
10/21/2024, 1:26 PM
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.