Correct, `by` is a "soft keyword" (<http://kotlinl...
# tornadofx
r
Correct,
by
is a "soft keyword" (http://kotlinlang.org/docs/reference/keyword-reference.html#soft-keywords).
The following tokens act as keywords in the context when they are applicable and can be used as identifiers in other contexts
When we were discussing it earlier, we thought it would be best avoided for the Point2D infix as it might be confusing next to actual delegate calls, though it would compile without a problem.
Copy code
val controller: MyController by inject()
val position: Point2D = 2 by 4
It technically works fine, and can even be understood fairly easily for most, but may be a bit confusing to new users.