-
Notifications
You must be signed in to change notification settings - Fork 3
Home
Jordan Klassen edited this page Dec 3, 2016
·
3 revisions
Welcome to the tacoscript wiki!
Here are some random ideas:
- 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
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"}