Skip to content

Commit 7243302

Browse files
committed
add character literal to character guide, closes #190
1 parent bb825ca commit 7243302

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

content/guides/weird_characters.adoc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -497,6 +497,23 @@ for simple names.
497497

498498
* <<xref/../../reference/reader#,Reader>>
499499

500+
== `\` - Character literal
501+
502+
`\` indicates a literal character as in:
503+
504+
[source,clojure]
505+
----
506+
user=> (str \h \i)
507+
"hi"
508+
----
509+
510+
There are also a small number of special characters to name special ASCII characters: `\newline`, `\space`, `\tab`, `\formfeed`, `\backspace`, and `\return`.
511+
512+
The `\` can also be followed by a Unicode literal of the form `\uNNNN`. For example, `\u03A9` is the literal for Ω.
513+
514+
515+
516+
500517
== `$` - Inner class reference
501518

502519
Used to reference inner classes and interfaces in Java. Separates the

0 commit comments

Comments
 (0)