First cut of a Tuple type with some temporary features:
Temporary tuple expression t(<...members>)
Tuple is represented by a JavaScript array at runtime
Temporary get(source, index) expression (to be replaced by a left-recursive version like source[index]. Works for Arrays and Tuples. index must be a number literal for tuples.
Syntax is temporary because I have a lot of choices to make about
function, infix operator and data structure syntax. I want to build some
language features first so I can run "real" programs and decide how I
want the syntax to look and feel.
First cut of a Tuple type with some temporary features:
t(<...members>)
get(source, index)
expression (to be replaced by a left-recursive version likesource[index]
. Works for Arrays and Tuples.index
must be a number literal for tuples.Syntax is temporary because I have a lot of choices to make about function, infix operator and data structure syntax. I want to build some language features first so I can run "real" programs and decide how I want the syntax to look and feel.