https://kotlinlang.org logo
k

kevinmost

10/21/2016, 9:29 PM
what about some sort of syntax like
Copy code
xmlNode("root") {
  child {
    ["someattribute"] = "attribute value"
    ["otherattribute"] = "other value"
  }
}
Which, if I understand correctly, you can already do via the
set
operator by doing
this@child["someattribute"] = "attribute value"
or something, yes?