RESS icon indicating copy to clipboard operation
RESS copied to clipboard

Punct Ident Prefix

Open FreeMasen opened this issue 5 years ago • 0 comments

The primary method for handling # and @ is to support them as single character puncts and force the caller to deal with the repercussions (what we do currently).

It may make more sense to treat these as extentions to ident_start similar to the inclusion of _ and $. The plus side here is that the caller would have less to do after tokenization, the negative is that we would be pretty tied to the proposal as it is today and if it were to change then we would have much more work to remove the code.

One possibility would be to also extend the Ident struct to have is_decorator and is_private methods.

FreeMasen avatar Aug 27 '19 00:08 FreeMasen