Skip to content

Keyword: "quote"

Pebaz edited this page May 29, 2019 · 1 revision

Description

Allows syntax elements to be passed as arguments to functions without being evaluated. For instance, the function call:

(set 'name "Pebaz")

Receives the Identifier name and the String "Pebaz". Without the quote character ', the Identifier name would be looked up and it's value (if any) passed to the set function, not the identifier itself (whose value is "name").

Usage

(set 'times 3)
(print times)

(set 'quoted-thing '[1 2 3])
(prin "quoted-thing: ")
(print quoted-thing)

(set 'looper '[
    (print "Hello World!")
])
(print looper)

Clone this wiki locally