Re: Feature suggestion: without keyword=
- Posted by jacques deschĂȘnes <desja at globetrotter.??t> May 20, 2008
- 606 views
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