lua-users home
lua-l archive

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

On Jan 3, 2008 2:54 PM, steve donovan <> wrote:
Strangely enough, I am not fully convinced that lua macros are a good
idea ;)  There are far too many Joe Random Hackers around - but on the
other hand, we should be rather restrained by good style than by a
simple 'No you can't do that!

- The CTMP system's design should encourage you to do things the right way

- When you do them in what seems the wrong way to the system, your code should have a strong smell, so that you're conscious that you're doing something unusual. A good framework design works as an adviser.

- You, not the framework, are the one with brains, so you're entitled to the last word. You're free to do something odd if you know what you're doing. People should be allowed to commit distasteful hacks, since revolutionary is often hard to distinguish from gross.

- If your reasons to do weird things weren't compelling enough, people won't use/maintain your work and it will fall into oblivion, as it should. Internet is a fairly efficient Darwinian selector, especially for open source code, and it's the rule that 95% of the code won't survive long on it.

These are some of the reasons why I don't believe into excessively flexible (spineless?:)) syntax extension mechanisms, why I think all code manipulations should be done on AST (possibly masqueraded as quasi-quotes), and why I don't bother too much about enabling awful hacks. 

-- Fabien.