[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Domain Specific Languages
- From: Björn De Meyer <bjorn.demeyer@...>
- Date: Mon, 09 Sep 2002 19:10:08 +0200
Martin Spernau wrote:
>
> Thanks for your example!
> this gives me some valuable arguments!
> -Martin
>
Another disadvantage of XML versus Lua is that
XML scripting is cumbersome and cryptical.
I've seen horrors like this:
<script>
<if> <condition><var="A"/><equals/><var="B"/> </condition>
<then><call function="print"><arg><var="A"/></arg></then>
<else><call function="print"><arg><var="B"/></arg></else>
</if>
</script>
Ok, the syntax of the XML script could be different,
but the problem remains the same. I'd rather write
the following:
if a == b then print(A); else print(B); end
--
"No one knows true heroes, for they speak not of their greatness." --
Daniel Remar.
Björn De Meyer
bjorn.demeyer@pandora.be