https://kotlinlang.org logo
k

kevinmost

04/10/2017, 1:19 PM
I'm not a fan of this, personally, and the only reason I'm okay with
infix
is because you have to opt into it. My coworkers all thought
to
was a keyword at first, but it's just the stdlib infix method to make a Pair. I don't want more functions that look like keywords, especially if we do it like Groovy where all parens can be omitted for one-arg functions. Maybe it'd be clearer if you can at least opt into it with a keyword somehow
👍🏼 1