[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lpeg.C() drops named captures. Is there a workaround for that?
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 30 Aug 2023 10:18:14 -0300
> I myself tend to use named captures nested in table captures only for
> very simple tasks. For anything more complex I prefer to use unamed
> captures nested in function captures: The function then creates the
> table with the proper fields.
More specifically: I tend to use named captures nested in table captures
when there is already a table capture for a list of unamed captures
and I want to add one or two extra named fields in the table (e.g., a
tag). When the table being created is a record, I prefer to use a function.
-- Roberto