From: Mike Gran <INVALID.NOREPLY@gnu.org>
To: Andy Wingo <wingo@pobox.com>, Mike Gran <spk121@yahoo.com>,
bug-guile@gnu.org
Subject: [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args
Date: Sun, 01 Aug 2010 12:12:58 +0000 [thread overview]
Message-ID: <20100801-121258.sv73118.728@savannah.gnu.org> (raw)
In-Reply-To: <20100801-084114.sv20118.37594@savannah.gnu.org>
Follow-up Comment #2, bug #30611 (project guile):
Even if one were to make the argument that 1.8.7's behavior of having a key
be read as an optional argument was valid, silently dropping the "3" in the
(func 1 #:c 3) in the previous example is problematic.
Consider the following behavior.
$ (define* (funk #:key a) #t)
$ (funk 1 2 3)
=> #t
$ (define* (funk) #t)
$ (funk 1 2 3)
=> ABORT: wrong number of args
IMHO, the first of these two examples should also trigger a
wrong-number-of-args error.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?30611>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
next prev parent reply other threads:[~2010-08-01 12:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-31 4:49 [bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args Mike Gran
2010-08-01 8:41 ` Andy Wingo
2010-08-01 12:12 ` Mike Gran [this message]
2011-09-06 21:32 ` Ludovic Courtès
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=20100801-121258.sv73118.728@savannah.gnu.org \
--to=invalid.noreply@gnu.org \
--cc=bug-guile@gnu.org \
--cc=spk121@yahoo.com \
--cc=wingo@pobox.com \
/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).