lua-users home
lua-l archive

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


On Mon, 2002-09-09 at 14:10, Björn De Meyer wrote:
> 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
> 
>

You know that the sintax could be : 
<script> 
if a == b then print(A); else print(B); end
</script>

-- 
[]'s Victor Bogado da Silva Lins
victor@visgraf.impa.br