lua-users home
lua-l archive

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

2012/7/5 Jay Carlson <>:
> On Jul 4, 2012, at 12:29 PM, Dirk Laurie wrote:
>> 2012/7/4 Matthew Wild <>:
>>> On 4 July 2012 16:46, Dirk Laurie <> 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 think Matthew means "arbitrary string input"; I think the two of us
> assumed that h1{s} is an intended use. This should result in an h1 tag
> with text contents of s--which means s must be quoted like "
> <h1>
> "..quoted(s).."
> </h1>
> ".

I'll postpone further development — and bail out of this thread — until
I've had a look at what Steve did in Penlight.  As I've said before, if
I had known about that I would not have rolled my own.