The syntax choices are really nice here. It has a lot of what I would pick for a language. The one-liner test cases are awesome, <> for generics is comfortable since I use rust, sum types like elm are awesome. If I were to add something (well take it away really) its to use whitespace for array element separators. Eliminates the whole trailing comma issue and looks cleaner, though I admit it might create parsing ambiguities. 'try expr', returning (val,err) is curious and I think I like it better already than try {} catch {}.
munificent|2 years ago
Indeed:
Does that produce [5, -3] or [2]?jrajav|2 years ago
dmoy|2 years ago
archargelod|2 years ago
I like how Nim solves this problem: just allow trailing comma on last element. It makes easier to copy paste elements, move them around and even sort (e.g. in vim).
```
var list = @[
]```
KerrAvon|2 years ago
donpdonp|2 years ago
tikhonj|2 years ago
irq-1|2 years ago
An FFI like luajit is asking alot, but inspired by it would be nice.
ozyschmozy|2 years ago