lua-users home
lua-l archive

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


On 4 July 2012 17:29, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> 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.

I don't understand this.

> 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).

Then it still hasn't met its goals - manually XML-escaping stuff
everywhere is my very definition of tedium and unreadability :)

Regards,
Matthew