pniederw
08/11/2017, 4:27 AMilya.gorbunov
08/11/2017, 5:18 AMsome people expected@elect I don't think it's a matter of votes. While it seems to be a common intuition thatto be infixed.. may I open a call and see how much votes it gets?pow
pow
should be infix when it's the only function invoked, as soon as it comes in a more complex expression, like a pow 2 + b pow 2
all intuition breaks.
It is highly unlikely that we'll be changing the order of infix operators and infix functions to tailor that to this case.
What can be helpful here is the designated operator for the exponentiation with its own prioirity, like ^
or **
, but given how reluctantly new symbolic operators are introduced in Kotlin, I wouldn't count on that too.karelpeeters
08/11/2017, 7:58 AMarr.forEach(it.myFunction())
.arekolek
08/11/2017, 8:16 AMlet
, run
and forEach
I came up with this.manuell
08/11/2017, 11:10 AMkirillrakhman
08/11/2017, 11:22 AMmeasureTimeMillis
manuell
08/11/2017, 11:57 AMloloof64
08/11/2017, 12:38 PMkirillrakhman
08/11/2017, 12:46 PMkirillrakhman
08/11/2017, 12:47 PMkirillrakhman
08/11/2017, 12:47 PMloloof64
08/11/2017, 12:47 PMEugen Martynov
08/11/2017, 1:58 PMEugen Martynov
08/11/2017, 1:58 PMEugen Martynov
08/11/2017, 1:59 PMEugen Martynov
08/11/2017, 2:00 PMreflect
and lets hope they are compatiblepoohbar
08/11/2017, 2:03 PMuser
08/11/2017, 2:05 PMUnit
return type, looks good otherwise.adams2
08/11/2017, 3:35 PMadams2
08/11/2017, 3:35 PMjw
08/11/2017, 3:37 PMdharrigan
08/11/2017, 3:37 PMkotlin "in keyword"
into google pulls back lots of hits 🙂dharrigan
08/11/2017, 3:37 PMjw
08/11/2017, 3:37 PMadams2
08/11/2017, 3:41 PMadams2
08/11/2017, 3:41 PMadams2
08/11/2017, 3:43 PMjw
08/11/2017, 3:45 PMdragas
08/11/2017, 4:58 PMKClass
instances singletons?