Skip to content
Snippets Groups Projects
Unverified Commit cd958802 authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

doc: cookbook: Mention "#true" and "#false".

* doc/guix-cookbook.texi (A Scheme Crash Course): Mention "#true" and
"#false".
(Extended example): Likewise.
parent 028119e9
No related branches found
No related tags found
No related merge requests found
...@@ -128,8 +128,9 @@ REPL. ...@@ -128,8 +128,9 @@ REPL.
@item @item
Scheme syntax boils down to a tree of expressions (or @emph{s-expression} in Scheme syntax boils down to a tree of expressions (or @emph{s-expression} in
Lisp lingo). An expression can be a literal such as numbers and strings, or a Lisp lingo). An expression can be a literal such as numbers and strings, or a
compound which is a parenthesized list of compounds and literals. @code{#t} compound which is a parenthesized list of compounds and literals. @code{#true}
and @code{#f} stand for the Booleans ``true'' and ``false'', respectively. and @code{#false} (abbreviated @code{#t} and @code{#f}) stand for the
Booleans ``true'' and ``false'', respectively.
Examples of valid expressions: Examples of valid expressions:
...@@ -1090,9 +1091,9 @@ this: ...@@ -1090,9 +1091,9 @@ this:
#t) #t)
@end lisp @end lisp
The procedure must return @code{#t} on success. It's brittle to rely on the return The procedure must return @code{#true} on success. It's brittle to rely on the return
value of the last expression used to tweak the phase because there is no value of the last expression used to tweak the phase because there is no
guarantee it would be a @code{#t}. Hence the trailing @code{#t} to ensure the right value guarantee it would be a @code{#true}. Hence the trailing @code{#true} to ensure the right value
is returned on success. is returned on success.
@subsubsection Code staging @subsubsection Code staging
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment