It is/will be possible to allow underscores in selectors. However the parser may not be able to parse code unambiguously which uses underscore for assignment. Prior to enabling underscores in selectors, all other use of underscores for assignment need to be edited to ensure that underscores are delimited by whitespace in order to remove any ambiguity. Once underscores are enabled in selectors there will be no more ambiguity since the compiler will police things, and arranging for the pretty printer to show underscores with some posh unicode assignment symbol will mean that we can continue to use underscores for assignment (shoot the heretic!) -- kph
Having fixed all of the occurrences (listed below) the next step is to look at adjusting the scanner to enable underscores in selectors.
Some code is available as an example.
steps:
- Fix ambiguous methods (done)
- Write comprehensive tests for Scanner/Parser
- Make a NewScanner in parallel
- Write tests for the new scheme
- Implement new scheme in NewScanner
- Switch from Scanner to NewScanner and test
- (leave old scanner in place?) Rename Scanner to OldScanner
- Make new scanner loadable (atomically via mc?) as Scanner.
Ambiguous methods:
Comments (0)
You don't have permission to comment on this page.