Hello, would there ever be introduction of allowin...
# language-proposals
k
Hello, would there ever be introduction of allowing infix functions to use a hidden ‘this’ when no receiver is declared? So that you could do something like
Copy code
fun foo(either: Either<A, B>, either2: Either<A, B>) {
  var x = bind either
  var y = bind either2
  // instead of either.bind()
}
e
how would that avoid breaking
Copy code
foo bar
baz
which currently is handled as
Copy code
foo.bar(baz)
given
infix fun bar
?
k
I’m not sure