| 
  • If you are citizen of an European Union member nation, you may not use this service unless you are at least 16 years old.

  • You already know Dokkio is an AI-powered assistant to organize & manage your digital files & messages. Very soon, Dokkio will support Outlook as well as One Drive. Check it out today!

View
 

GoalUnderscoresInSelectors

Page history last edited by PBworks 17 years, 3 months ago

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.