lambda* in make-prompt-tag
authorAndy Wingo <wingo@pobox.com>
Fri, 21 May 2010 21:32:43 +0000 (23:32 +0200)
committerAndy Wingo <wingo@pobox.com>
Fri, 21 May 2010 21:32:43 +0000 (23:32 +0200)
* module/ice-9/boot-9.scm (make-prompt-tag): Use lambda*.

module/ice-9/boot-9.scm

index 4bdd86b..cda926f 100644 (file)
 ;; Define delimited continuation operators, and implement catch and throw in
 ;; terms of them.
 
-(define (make-prompt-tag . stem)
-  (gensym (if (pair? stem) (car stem) "prompt")))
+(define make-prompt-tag
+  (lambda* (#:optional (stem "prompt"))
+    (gensym stem)))
+
 (define default-prompt-tag
   ;; not sure if we should expose this to the user as a fluid
   (let ((%default-prompt-tag (make-prompt-tag)))