lua-users home
lua-l archive

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


2012/7/4 Matthew Wild <mwild1@gmail.com>:
> On 4 July 2012 16:46, Dirk Laurie <dirk.laurie@gmail.com> wrote:
>>> bad input …. the result is probably not what the programmer intended.
>>
>> You're right, but is that a defect of my code or just an inconvenient
>> truth also known as GIGO?
>
> It's a defect in your code, if your code is meant to be taking
> arbitrary input and generating valid XML.

It isn't.  Lua and XML are both too rich to make that a design option.

My code is meant to take the tedium and unreadability out
of writing XML files in situations where the target is a well-behaved
subset of XML like CSL (Citation Speciification Language).

The actual application (I'm not there yet) is a BST to CSL converter.