lua-users home
lua-l archive

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


our code uses $if more mostly debugging stuff...


> -----Original Message-----
> From: Luiz Henrique de Figueiredo [mailto:lhf@tecgraf.puc-rio.br]
> Sent: Wednesday, May 10, 2000 2:32 PM
> To: Multiple recipients of list
> Subject: do you use the pre-processor?
> 
> 
> Continuing our quest for simplifying Lua, we are considering 
> trimming the
> pre-processor.
> 
> More precisely, we'd keep $debug, $nodebug, $endinput, but 
> would remove
> $if, $else, $end. So, the pre-processor would be back to its 
> old self of
> simply a set of pragmas that have immediate effect.
> 
> Conditional parts add complexity to the lexer (and the 
> language; see a recent
> message about $ inside [[...]] strings), but the benefits are 
> not obvious.
> For instance, $if VAR has a misleading requirement that VAR 
> needs to be defined
> (or not) *before* the chunk starts.
> 
> So, would the removal of $if, $else, $end break lots of existing code?
> --lhf
>