
for instance, this piece of code doesn’t even let the program compile
while it should
(ignore the fact that this code is wrong)

for instance, this piece of code doesn’t even let the program compile
while it should
(ignore the fact that this code is wrong)
You can write "left", "counterclockwise" -> ... to achieve what you want. That’s even fewer characters.
Note that your suggestion for a syntax gets ambiguous if you overload the || operator.
FWIW, you can’t overload any of the boolean operators in Kotlin right now.