unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: Kevin Ryde <user42@zip.com.au>
Subject: and-let* empty body
Date: Fri, 20 Aug 2004 11:34:23 +1000	[thread overview]
Message-ID: <87657ea8yo.fsf@zip.com.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 162 bytes --]

        * and-let-star.scm (and-let*): Give #t for an empty body per srfi-2
        spec, previously came out as an empty (begin).

This is another for 1.6 too.


[-- Attachment #2: and-let-star.scm.t.diff --]
[-- Type: text/plain, Size: 343 bytes --]

--- and-let-star.scm.~1.7.~	2004-08-18 10:17:23.000000000 +1000
+++ and-let-star.scm	2004-08-19 14:34:36.000000000 +1000
@@ -25,7 +25,9 @@
   (define (expand vars body)
     (cond
      ((null? vars)
-      `(begin ,@body))
+      (if (null? body)
+	  #t
+	  `(begin ,@body)))
      ((pair? vars)
       (let ((exp (car vars)))
         (cond

[-- Attachment #3: Type: text/plain, Size: 143 bytes --]

_______________________________________________
Guile-devel mailing list
Guile-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/guile-devel

             reply	other threads:[~2004-08-20  1:34 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-20  1:34 Kevin Ryde [this message]
2004-08-24 17:14 ` and-let* empty body Marius Vollmer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87657ea8yo.fsf@zip.com.au \
    --to=user42@zip.com.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).