A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://docs.racket-lang.org/reference/quote.html below:

3.3 Literals: quote and #%datum

3.3 Literals: quote and #%datum🔗ℹ

Many forms are implicitly quoted (via #%datum) as literals. See Expansion Steps for more information.

Quoting: quote and ’ in The Racket Guide introduces quote.

Produces a constant value corresponding to

datum

(i.e., the representation of the program fragment) without its

lexical information

, source location, etc. Quoted pairs, vectors, and boxes are immutable.

Examples:

> (quote x)

'x

> (quote (+ 1 2))

'(+ 1 2)

> (+ 1 2)

3

Expands to (quote datum), as long as datum is not a keyword. If datum is a keyword, a syntax error is reported.

See also Expansion Steps for information on how the expander introduces #%datum identifiers.

Examples:

> (#%datum . 10)

10

> (#%datum . x)

'x

> (#%datum . #:x)

eval:6:0: #%datum: keyword misused as an expression

  at: #:x


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4