Re: Feature suggestion: without keyword=

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

I vote NO, I agree with Jeremy on that.

Jacques


CChris wrote:
> 
> One of the reasons new keywords are not easily accepted into the language is
> that they will break code that used the previously available identifier as a
> var/routine name.
> 
> While additions to 4.0 will have this undsirable effect - can't help -, we
> could
> avoid further breakage by introducing a new directive:
> }}}
<eucode>
> without keywords= <comma separated list on one line>
> </eucode>
{{{

> 
> This would instruct the interpreter to accept identifiers in the list as
> normal
> identifiers, and prevent it from considering any of them as a keyword.
> 
> Symetrically, "with keywords" would disable such filtering.
> 
> Both directives would behave like "with trace" or similar, ie you can change
> them at any point, and they are restored when parsing resumes after including
> a file.
> 
> This way, Eu 4.1 would be able to run pre-4.1 code that might break with only
> minor editing. I guess there could be a command line switch to set the initial
> state of the filter. At startup, and without such instruction, the interpreter
> would start "with keywords".
> 
> Any thoughts?
> 
> CChris

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

Search



Quick Links

User menu

Not signed in.

Misc Menu