You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We already got rid of octal literals and octal escape literals are even more obscure and misleading for unaware readers.
Considering that we live in a Unicode world, the usefulness of special syntactical shortcuts for characters between 0 and 255 is greatly diminished.
Fixing this issue involves adding a deprecation warning/error to the scanner and updating the spec (remove "A character with Unicode between 0 and 255 may also be represented by an octal escape, i.e. a backslash ‘’ followed by a sequence of up to three octal characters." from "1.3.6 Escape Sequences" and " or the octal escape '\12'" from "1.3.4 Character Literals").
The text was updated successfully, but these errors were encountered:
Ref scala#2342
Ref scala/bug#7292
This removes octal escape in String literals, which was deprecated in 2.11 and removed under -Xfuture. As part of the effort to move away from -Xfuture flag, I am removing it here.
We already got rid of octal literals and octal escape literals are even more obscure and misleading for unaware readers.
Considering that we live in a Unicode world, the usefulness of special syntactical shortcuts for characters between 0 and 255 is greatly diminished.
Fixing this issue involves adding a deprecation warning/error to the scanner and updating the spec (remove "A character with Unicode between 0 and 255 may also be represented by an octal escape, i.e. a backslash ‘’ followed by a sequence of up to three octal characters." from "1.3.6 Escape Sequences" and " or the octal escape '\12'" from "1.3.4 Character Literals").
The text was updated successfully, but these errors were encountered: