https://kotlinlang.org logo
d

dimsuz

03/02/2017, 12:46 PM
I feel like inspection which suggests me to destructure a lambda arguments is a bit too intrusive. It's ok for objects with 2-3 fields, but when it ends up chaning my nice
{ arg -> println(arg.field1) }
to
{ (field1, field2, field3, field4, field5, field6) -> println(field1) }
it looks not well 🙂 having to silence it with annotation on each occasion is an overkill too. Another option is to disable inspection, but on the other hand I'd like to be reminded of it sometimes... I'm puzzled 🙂