lua-users home
lua-l archive

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


On 8 June 2012 19:05, Fabien <fleutot+lua@gmail.com> wrote:
> After trying most reasonable alternatives in luasched, we've settled with
> "1.two" being the only canonical notation for paths; it means [1]["two"],
> and there's no way to denote ["1"]["two"]. It appears to be the best
> compromise between simplicity and usefulness, although I'm sure you can
> invent pathological cases where it causes issues.

The issue is that . is also the decimal seperator.

What does foo.1.5 do?
1 . 5? or foo[1.5]?