vladimirsitnikov
02/27/2023, 9:24 AMclass Named<Value>(
val value: Value,
@CallerArgumentExpression("value") val name: String = ""
) {
override fun toString(): String = "Named(value=$value, name='$name')"
}
Named(2+2) // the plugin would transform the call to Named(2+2, "2+2")
It might be helpful for tests, preconditions, asserts, etc, so you can have better outputs with almost no overhead.Emil Kantis
02/27/2023, 11:37 AMvladimirsitnikov
02/27/2023, 11:57 AM