Skip to content

Commit

Permalink
Merge pull request #924 from AleoHQ/doc/rfc-strings
Browse files Browse the repository at this point in the history
Make PR for Eric M.'s edits on the doc/rfc-strings branch
  • Loading branch information
acoglio authored May 6, 2021
2 parents ca6495d + 4fb3d9c commit 15deef6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/rfc/001-initial-strings.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,16 @@ namely _[TODO: Decide which other escapes we want to allow, e.g. `'\n'`.]_
* `\"`

We also allow Unicode escapes of the form `'\u{X}'`,
where `X` is a sequence of one or more hex digits
where `X` is a sequence of one to six hex digits
(both uppercase and lowercase letters are allowed)
whose value must be between 0 and 10FFFFh.
whose value must be between 0 and 10FFFF, inclusive.
Note that the literal character is assembled by the compiler---for
creating literals, there is no need for the circuit to know
which codepoints are disallowed.
_[TODO: Do we want a different notation for Unicode escapes?
Note that the `{` `}` delimiters are motivated by the fact that
there may be a varying number of hex digits in this notation.]_
This notation is supported by both Javascript and Rust.

_[TODO: Which (initial) built-in or library operations
do we want to provide for `char` values?]_
Expand Down

0 comments on commit 15deef6

Please sign in to comment.