lua-users home
lua-l archive

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



steve donovan <steve.j.donovan@gmail.com> schreef:

>On Thu, Jun 7, 2012 at 7:51 PM, Thijs Schreijer
><thijs@thijsschreijer.nl> wrote:
>> I made one as well once, and failed on numeric keys like this one;
>
>Ah, but then you would need to extend the meaning of 'path' like so
>'[1].two' (because '1.two' means t['1']['two'])
>
>Hidden in here is the potential for a XPath-like generalized notation,
>which could do simple conditional extraction.
>
>steve d.

Correct. Depends on how advanced the required solution needs to be. The point (which I left up to the reader) was that you'll quicky hit the general serialization issues in path traversals like this.

Thijs