Function argument list syntax should maybe match array syntax
fcard opened this issue · 1 comments
I was wondering if it wouldn't be more consistent that instead of
f(a,b,c)We used
f(a b c)Which is the same syntax for lists/arrays. As far as I can tell languages tend to have the same syntax for argument lists and their (x,y,z) collection type.
We could also do like clojure and have , just act like whitespace inside lists, but I am not sure that's a good idea, specially in a shell language where , is a string like most things, instead of special syntax.
The idea came from me implementing argument lists in terms of list syntax in #38, so I already have this working:

I can easily add the requirement for commas in argument lists only but it got me thinking about this.
i definately like the space-separated approach.
Its less noisy, and very human readable..like bash was intended :)