pietervdvn / Lang

Yet another programming language
1 stars 1 forks source link

Think about list/set syntax #30

Closed pietervdvn closed 9 years ago

pietervdvn commented 10 years ago

What would be the best syntax for lists?

Patterns:

[a,b:as]  = a + b + f as
[a:b:as]  = a + b + f as

In combination with tuples

[(a,b):abs]
[a,b:c,d:abs]

Right hand side

a:as
[a:as]
[a,b:as]
[a:b:as]
[a,b] ++ as

In combination with tuples

[a,b:c,d:abs]
pietervdvn commented 9 years ago

We will stick with haskell llike syntax

Thx to @Iasoon