also <@U3J1F5UCS>, this is the road to scala-style...
# announcements
g
also @azabost, this is the road to scala-style DSL madness, but you can walk it if you want:
Copy code
operator fun Boolean.inc() = ! this;

//usage:
var myBool = false;

fun something(){
  myBool++
}
although, in trying that on my machine I'm getting the rather nonsensical error:
Error:(446, 9) Kotlin: 'operator' modifier is inapplicable on this function: receiver must be a supertype of the return type