Can add : or -> into operator overloading support?

I write a json lib, the syntax like this:

val json = json {
    "k1" to "v1"
    "k2" to 2
    "k3" to {
        "ik1" to "ik2"
    }
}

if : or → can do operator overloading
native json syntax will much readable

val json = json {
    "k1" : "v1"
    "k2" : 2
    "k3" : {
        "ik1" : "ik2"
    }
}

this can be use in many dsl scene

1 Like

We will likely add overloadable : in the future