ReScript 11.0
rescript-lang.org
rescript-lang.org
Record literal:
let me = {
age: 5,
name: "Big ReScript"
}
Object literal: let me = {
"age": 5,
"name": "Big ReScript"
}FWIW on this specific thing, I've used rescript quite a lot and I'm not sure I've ever written an object literal or declared an object type. They come from JS, but I almost always shift them into a real type in the extern binding.
You can't destructure or pattern match on them. Which both encourages coercing them and prevents the possibility of misusing them as records when you've chosen to keep them as objects. I'm not trying to change your mind on an aesthetic judgement, just this one doesn't come up that much.