lua-users home
lua-l archive

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




On Jan 22, 2008 2:27 PM, Fabien <fleutot+lua@gmail.com> wrote:
If you want to polish a syntax extension to the point where it's as reliable as a native Lua feature, you'll always have to fight some corner cases which require advanced code analysis. So metalua makes it possible to write robust macros, and the price to pay is, quick and dirty hacking without reading the manual is difficult.

I've tried to illustrate that point here:

http://metalua.blogspot.com/2008/01/simple-extension-with-catch.html

(It describes how a seemingly trivial catch...with extension is not so trivial after all, if you want to make it usable). I don't pretend that this extension is bulletproof yet, but it already addresses the pitfalls I've thought of, and most of these would have been a complete nightmare to write and maintain in a low level language.
 
-- Fabien.