by donpdonp · 3y ago · 0 comments
Indeed:
var array = [
5
- 3
]
Does that produce [5, -3] or [2]? *z = *x / *y;
addr = mask & &x;
x + ++y;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 = @[
a,
b,
c,
]```
An FFI like luajit is asking alot, but inspired by it would be nice.