lua-users home
lua-l archive

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


On Mon, May 2, 2011 at 17:40, Fabien <fleutot+lua@gmail.com> wrote:
> On Mon, May 2, 2011 at 8:59 AM, steve donovan <steve.j.donovan@gmail.com>
> wrote:
>> On Sun, May 1, 2011 at 11:36 PM, Alexander Gladysh <agladysh@gmail.com>
>> wrote:
>> > https://github.com/bartbes/Meta/blob/master/meta.lua#L32

>> I like this idea - so (for instance) mod.m.lua would be preprocessed
>> with a specific set of macros when loaded with require("mod").

> It has the interest of being conceptually simple, and it should be easy to
> hack simple syntax tweaks based on this. Hacking on strings is simple,
> because strings are a simple and well-known data structure. The price you
> pay is, it's really hard to get anything that really works:

<...>

> Having done a fair share of LaTeX macro "programming", and having committed
> a couple of m4-based crimes against good taste, I know I can't feel
> confident with hacked-together macro systems. Every other bug turns into a
> nightmare, digging into poorly maintained macro packages. It is barely
> bearable for a text processor, I'd never accept to debug a realistic program
> in such conditions.

Just to be extra clear: I'm not the author of the code linked above
and I do not endorse the techniques it uses. All I did point to is the
package.loaders technique, which looks useful.

Alexander.