archives

« Bugzilla Issues Index

#3679 — String literal = sequence of code *points*?


11.8.4 String Literals

Quote: "A string literal is zero or more Unicode code points enclosed in single or double quotes."

True? IINM, the indexed entities are still code units and the SV section mentions UTF-16 encoding several times. Iteration is different, but I’d describe it as grouping code units.


A string *literal* is a hunk of source text, which is a sequence of code points. What it *represents* is a different matter. The SV section mentions UTF-16 encoding in order to accomplish the mapping from source text to String value.


resolving as invalid for the reasons that Michael mentioned