lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Another point: the statement 'foo "a" "b"' is valid but
> gives non obvious results.  I guess, most people will
> see that as 'foo("a","b")' but it is 'foo("a")("b")',
> that is the object returned by foo("a") is called as a
> function with argument "b".  IMHO the first interpretation
> would be more intuitive and useful, especially when mixing
> strings and table constructors: 'create "foo" { x=1, y=2 }'.

I'd not want to see that changed: it's natural function composition order.

-- 
http://sc3d.org/rrt/ | wit, n.  educated insolence (Aristotle)