unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
From: ludo@gnu.org (Ludovic Courtès)
To: guile-devel@gnu.org
Subject: Re: Warning for arity mismatches
Date: Sun, 08 Nov 2009 01:19:51 +0100	[thread overview]
Message-ID: <871vk998bc.fsf@gnu.org> (raw)
In-Reply-To: m3ocnedq2u.fsf@pobox.com

Hey,

Andy Wingo <wingo@pobox.com> writes:

> On Sat 07 Nov 2009 19:38, ludo@gnu.org (Ludovic Courtès) writes:

[...]

>> It currently lacks support for keyword
>> arguments, which is why it’s not ready yet to compile Guile itself (it
>> produces erroneous warnings for procedures with keyword arguments.)
>
> Why doesn't it just not warn in that case?

It now supports keyword arguments for good, so forget about it.  :-)

>> I think some of these warnings should really be errors, when there’s
>> undoubtedly a wrong number of arguments, as in:
>>
>>   (let ((f (lambda (x) x)))
>>     (f 1 2 3))
>>
>> What do you think?
>
> I think there should be a -Werror compilation argument, but that we
> should, by default, compile all expressions. It could very well be that
> the user wanted to cause an exception to be raised.

Right, why not.  With backwards compatibility in mind, it seems to me
like a reasonable approach

Thanks,
Ludo’.





  reply	other threads:[~2009-11-08  0:19 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-07 18:38 Warning for arity mismatches Ludovic Courtès
2009-11-07 20:42 ` Andy Wingo
2009-11-08  0:19   ` Ludovic Courtès [this message]
2009-11-08 10:04     ` Neil Jerram

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=871vk998bc.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=guile-devel@gnu.org \
    /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).