Re: New keywords: ifdef, elsifdef, end ifdef

new topic     » goto parent     » topic index » view thread      » older message » newer message

Derek Parnell wrote:
> 
> I have no problem with the proposed keyword 'ifdef' to signal the start of
> parser-time
> condition testing. The 'else' and 'elsif' keywords can be comfortably reused
> in this context as they semantically mean the same whether processed at
> parser-time
> or at execute-time, the only difference is *when* it gets processed.
> 

I was thinking of doing that but I did not want to cause confusion. i.e. if ...
then ... elsif ... else ... end if   vs. ifdef ... then ... elsifdef ... end
ifdef

I like elsif better and it would reduce one keyword count, but I'm not sure
about it's clarity? Also, it would then blend in better with other standard
if/elsif/end if statements? Thinking aloud seeking input.

Now that the functionality exists, it's easy to change its syntax. This is what
Open Source software is about, isn't this great? Ideas implemented, improved and
furthered.

--
Jeremy Cowgar
http://jeremy.cowgar.com

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu