Kroppeb
12/01/2024, 5:37 AMval (a, b) = list
is too few? Python does it, and it's weird that Kotlin is the more unsafe one.Arjan van Wieringen
12/01/2024, 10:39 AMKroppeb
12/01/2024, 10:57 AMArjan van Wieringen
12/01/2024, 11:07 AMrequire { list.length == 2}
in front.Michael de Kaste
12/02/2024, 9:22 AM[false, 1, 3]
or [true]
then I want to able to do (arg1, arg2, arg3) -> if(arg1){ null } else { arg2..arg3 }
perhaps a compiler plugin can make the destructuring based on your requirements?Kroppeb
12/02/2024, 10:52 AM