Hello,
I’ve just started creating a DSL in Kotlin and noticed that to set a field of a Java object I had to call the setter method, like so:
person.setName("helpermethod")
I think it would be cool if I could modify the field from Kotlin as if it were a property, like
person.name = "helpermethod"
I think this would allow to write even cleaner DSLs, e.g.
person {
name = "helpermethod"
}
instead of
person {
setName("helpermethod")
}