aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-06-12 21:09:35 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2022-06-13 04:11:35 +0200
commit73a4bfc3d8e9bb5365e33a11a6ad3b8340d5195b (patch)
treee52324edc63a240e5c0b88081c325f789168a4c5 /doc
parentDocument timespec and zic. (diff)
downloadcalp-73a4bfc3d8e9bb5365e33a11a6ad3b8340d5195b.tar.gz
calp-73a4bfc3d8e9bb5365e33a11a6ad3b8340d5195b.tar.xz
Remove custom let*.
While it was nice, the most important part was the multi-valued let from srfi-71 (which is implemented in srfi-71)). The minor pattern matching structures could often be replaced with car+cdr, or a propper match.
Diffstat (limited to 'doc')
-rw-r--r--doc/ref/guile/util.texi12
1 files changed, 0 insertions, 12 deletions
diff --git a/doc/ref/guile/util.texi b/doc/ref/guile/util.texi
index 3f37491d..d7ed0785 100644
--- a/doc/ref/guile/util.texi
+++ b/doc/ref/guile/util.texi
@@ -46,18 +46,6 @@ If keys are a list, an match-lambda is used instead.
@xref{Pattern Matching,,,guile}
@end defmac
-@defmac let* forms body ...
-Replace let* with a version that can bind from lists.
-Also supports SRFI-71 (extended let-syntax for multiple values)
-@lisp
-(let* ([a b (values 1 2)] ; @r{SRFI-71}
- [(c d) '(3 4)] ; @r{Let-list (mine)}
- [(a b . c) (cons* 1 2 3)] ; @r{Improper list matching (mine)}
- [e 5]) ; @r{Regular}
- (list e d c b a))
-;; => (5 4 3 2 1)
-@end lisp
-@end defmac
@defmac print-and-return expr
Prints @var{expr}, and then returns it.