lua-users home
lua-l archive

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

On Jan 9, 2008 5:51 AM, Fabien <> wrote:
Maybe it's worth adding a couple of details about what misses in the current pattern matching system, to make it a good XML handling tool.

The current system works great to manipulate trees that are entirely in RAM, and whose structure is known precisely. The most common use-case is to manipulate metalua Abstract Syntax Trees, although it's prefectly suitable for any other tree-like structure. When you manipulate XML, there are two key differences:

- the data you're working with are potentially huge or even infinite streams. You want to be able to load data in RAM lazily, only when it's actually required.

Check out .  In retrospect, the .switch construct in is perhaps best seen as an attempt at pattern matching without syntactic support. 

The Precise Nature Of The Catastrophe