Skip to content
Jordan Klassen edited this page Dec 3, 2016 · 3 revisions

Welcome to the tacoscript wiki!

Here are some random ideas:

(1,2,3) -> Immutable.List.of(1,2,3) (like python's tuples)

  • 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"
}
Clone this wiki locally