lexi-lambda / racket-tulip

15 stars 1 forks source link

tuple syntax not supported #3

Open soupi opened 8 years ago

soupi commented 8 years ago
(.x, .y, .z) # or simply just: .x, .y, .z

expected:

.tuple x (.tuple .y .z)

got:

lexer: No match found in input starting with: ,
lexi-lambda commented 8 years ago

I’m not totally sure that this syntax makes a huge amount of sense to me. Why do tuples get their own syntax, but lists are created with macros? Also, if these are really tuples, I think it would actually be better to make (.x, .y, .z) produce .tuple .x .y .z, since operating over elements of generic length would make more sense as a list operation (especially since tulip is dynamically typed and allows heterogenous lists).

@jneen and/or @sigfig, could you weigh in on this?