I’m exploring the following two closed object syntaxes:
Syntax #1
type personA = {. name: string};
let a: personA = {as _; pub name = "Hello"};
let aName = a#name;
Syntax #2
type personB = {. "name": string};
let b: personB = {"name": "Hello"};
let bName = b##name;
The types are similar, but their usage is quite different.
When might you use each of these types?
Thanks!