Feature suggestion: without keyword=
- Posted by CChris <christian.cuvier at agriculture.?ou?.fr> May 19, 2008
- 591 views
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:
without keywords= <comma separated list on one line>
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