-
Notifications
You must be signed in to change notification settings - Fork 3
Keyword: "quote"
Pebaz edited this page May 29, 2019
·
1 revision
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").
(set 'times 3)
(print times)
(set 'quoted-thing '[1 2 3])
(prin "quoted-thing: ")
(print quoted-thing)
(set 'looper '[
(print "Hello World!")
])
(print looper)