1 Aug 2010 14:12
[bug #30611] [1.8.7] (ice-9 optargs) mixes keyword and optional args
Mike Gran <INVALID.NOREPLY <at> gnu.org>
2010-08-01 12:12:58 GMT
2010-08-01 12:12:58 GMT
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/
(Continue reading)
RSS Feed