rescript-compiler
rescript-compiler copied to clipboard
Use varialbe keys with dict{}
It would be nice to pass a variable as a dict{} key:
let loc = "BS_PRIVATE_NESTED_SOME_NONE"
let properties = dict{
[loc]: schema,
}
Also accessing with myDict["A"] and myDict[loc] like an array, will be more practical than Dict.get