From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?Elias_M=C3=A5rtenson?= Newsgroups: gmane.emacs.devel Subject: Re: Arbitrary function: find the number(s) of expected arguments Date: Sat, 26 Mar 2016 23:55:03 +0800 Message-ID: References: <56E8906C.5050405@lanl.gov> <83egb68vfy.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a114573fa03de08052ef5b46b X-Trace: ger.gmane.org 1459007725 16373 80.91.229.3 (26 Mar 2016 15:55:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 26 Mar 2016 15:55:25 +0000 (UTC) Cc: emacs-devel To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 26 16:55:25 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ajqYe-0005Es-UI for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2016 16:55:25 +0100 Original-Received: from localhost ([::1]:60686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajqYd-0004ZN-Se for ged-emacs-devel@m.gmane.org; Sat, 26 Mar 2016 11:55:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajqYN-0004XS-JI for emacs-devel@gnu.org; Sat, 26 Mar 2016 11:55:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ajqYM-0006dv-L6 for emacs-devel@gnu.org; Sat, 26 Mar 2016 11:55:07 -0400 Original-Received: from mail-vk0-x233.google.com ([2607:f8b0:400c:c05::233]:33604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ajqYM-0006dP-G8 for emacs-devel@gnu.org; Sat, 26 Mar 2016 11:55:06 -0400 Original-Received: by mail-vk0-x233.google.com with SMTP id k1so116862752vkb.0 for ; Sat, 26 Mar 2016 08:55:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=6u7dNJ604oXHPU4t8xokXzvo6KQgCMV71Ka9Lk2anWI=; b=0d8IMKPsZILKOH3O0LEyxPRC1s3HNH/3BGTFeflqRz+FavQQ1i6osqRqEnJnBSf7sj ViMIFO9kY9NusHaZqzZdknEo/1FiZfl0AtID5YAlj83vwCdaTGJnIQTjGbPeu53hmfyQ YSzgecR4+yEJp9E6tn8oqDH9a+pwXtcKiWM0gsv55vSiSrO1YQlqR3M4/A/fr+hyBai7 amAAVnk8zLfSGJSj+0aw1b+Lb96axcfWe2Oz2BDCcAvH9xe7ZxnRPGTpUHG9o0eem8dN QRMLy9eGJHWIG8vzOtwryQtHt3WeH84p1Gphqw34ME3CEKyx2I1mtMkfLdOsQp6wklFs 6P9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=6u7dNJ604oXHPU4t8xokXzvo6KQgCMV71Ka9Lk2anWI=; b=f6nbcb6OTHZFBFhe8paSwBad2TIi2TbCQi8Spaf6Fta5y20EF1pDSMF9TdwsWhe6Vu StYSuOez76vYUuoeC9FMNMMK4moSaRXbHYzjg/CWof4u4qSPANj9TKJXBANBrSqkrDHL X2Y16cVX+KqZWPnYzit+iAexiygXAx4f0yl7T27PQvxJKpXtna8/2MaGGPqd6K4Svj5H vyR4Gs9y5UiyZlDzYjyRLbc8EAERO4M3z2T1IEMpPvVjWFJcBlqxGnRJ6LAyxHg7zeuI IzepvwvPN0NqQcCwCthBL6lVt0om/R4Fht3vjSJ/RCJzNIHYrBUOSg+N+X44U99kDEyL Kblw== X-Gm-Message-State: AD7BkJLdjIxjssX311U+pyDHlPk1gHlHPbelnXXf/Fzag5gsYT1HcrOmXPy8awop5R4xCwl/1ET1xYp4jk1AnA== X-Received: by 10.31.133.19 with SMTP id h19mr9826092vkd.127.1459007705568; Sat, 26 Mar 2016 08:55:05 -0700 (PDT) Original-Received: by 10.176.5.163 with HTTP; Sat, 26 Mar 2016 08:55:03 -0700 (PDT) Original-Received: by 10.176.5.163 with HTTP; Sat, 26 Mar 2016 08:55:03 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400c:c05::233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:202258 Archived-At: --001a114573fa03de08052ef5b46b Content-Type: text/plain; charset=UTF-8 On 20 Mar 2016 03:53, "Stefan Monnier" wrote: > > As mentioned to my reply in the corresponding thread, you're better off > just making the call and catching the potential > `wrong-number-of-arguments' signal. Isn't that really dangerous? You're going to catch that error from any function call, not just the top one that you are interested in. Sounds like something that would be he'll to debug if it hit you. Regards, Elias --001a114573fa03de08052ef5b46b Content-Type: text/html; charset=UTF-8

On 20 Mar 2016 03:53, "Stefan Monnier" <monnier@iro.umontreal.ca> wrote:
>
> As mentioned to my reply in the corresponding thread, you're better off
> just making the call and catching the potential
> `wrong-number-of-arguments' signal.

Isn't that really dangerous? You're going to catch that error from any function call, not just the top one that you are interested in. Sounds like something that would be he'll to debug if it hit you.

Regards,
Elias

--001a114573fa03de08052ef5b46b--