Dodo doc > Syntax > Literal Values > Special Characters


Special character literals

Characters are normally written like text string literals in dodo. However special characters have a different syntax. Special character literals occur outside text string literals and start with "\". Some special characters are:

\" double quote
\n newline
\t tabulation
\uXXXX unicode character XXXX (hexadecimal)
Rationale: keeping special characters out of text string literals accomplishes two things, it frees string literals from having to define an escape character and it reduces the number of keystrokes required to type a single special character since there are no quotes. The drawback is that strings with many special characters involve a lot of string concatenation.

^ 2.4.2. Text String Literals

v 2.4.4. Collection Literals