[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: dot encoded string key
- From: Daurnimator <quae@...>
- Date: Fri, 8 Jun 2012 20:24:43 +1000
On 8 June 2012 19:05, Fabien <firstname.lastname@example.org> wrote:
> After trying most reasonable alternatives in luasched, we've settled with
> "1.two" being the only canonical notation for paths; it means ["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]?