You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
note: see how immutable lists can work in maps with equality
note: sequences are noted with ;, so this doesn't conflict with that: (1;2;3) is 3 -> (1,2,3) === 3
C-style object literals
javascript object literals look like
o = {
a: 1,
b: "foo"
}
c struct initialization looks like
MY_TYPE o = {
.a = 1,
.b = "foo"
};
a tacoscript variant would look like
o = {
.a = 1
.b = "foo"
}
and with flow typing, the shorthand could be supported (though enabling this would forbid es2015+ object shorthand).
this is probably a bad idea though.
type Item {
a: number
b: string
}
const o: Item = {1, "foo"}