-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Open
Labels
breakingThis change will break codeThis change will break codeparserLanguage parsing and surface syntaxLanguage parsing and surface syntax
Description
In Julia 0.6, the following is legal syntax:
ᵃx = 3
1+ᵃx # returns 4
But after #22089, it errors with "UndefVarError: +ᵃ not defined", because it parses as 1 +ᵃ x
.
One possible remedy would be to deprecate variable names that begin with characters that are allowed as operator suffixes.
Another option would be to require spaces around suffixed operators.
Or do both, with the options of removing the spaces requirement in a later version.
Metadata
Metadata
Assignees
Labels
breakingThis change will break codeThis change will break codeparserLanguage parsing and surface syntaxLanguage parsing and surface syntax