From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Arbitrary function: find the number(s) of expected arguments Date: Sat, 19 Mar 2016 18:47:03 +0200 Message-ID: <8337rm8lfc.fsf@gnu.org> References: <56E8906C.5050405@lanl.gov> <83egb68vfy.fsf@gnu.org> <87zituefp9.fsf@web.de> <83a8lu8srs.fsf@gnu.org> <87twk2ebp2.fsf@web.de> <838u1e8od1.fsf@gnu.org> <8360wi8mbo.fsf@gnu.org> <834mc28m3j.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1458406070 7120 80.91.229.3 (19 Mar 2016 16:47:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 19 Mar 2016 16:47:50 +0000 (UTC) Cc: michael_heerdegen@web.de, emacs-devel@gnu.org To: Philipp Stephani Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Mar 19 17:47:50 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 1ahK2X-0000bn-CW for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 17:47:49 +0100 Original-Received: from localhost ([::1]:49674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahK2W-0007Ei-Gs for ged-emacs-devel@m.gmane.org; Sat, 19 Mar 2016 12:47:48 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahK2J-0007Ea-2A for emacs-devel@gnu.org; Sat, 19 Mar 2016 12:47:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahK2F-0006fH-Si for emacs-devel@gnu.org; Sat, 19 Mar 2016 12:47:34 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:59575) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahK2F-0006fD-PC; Sat, 19 Mar 2016 12:47:31 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:4358 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.82) (envelope-from ) id 1ahK2E-0005Pa-UD; Sat, 19 Mar 2016 12:47:31 -0400 In-reply-to: (message from Philipp Stephani on Sat, 19 Mar 2016 16:34:55 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e 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:201881 Archived-At: > From: Philipp Stephani > Date: Sat, 19 Mar 2016 16:34:55 +0000 > Cc: michael_heerdegen@web.de, emacs-devel@gnu.org > > > (g 10 202 30) => error -> "Wrong number of arguments" > > > > This cannot be detected without evaluating the function. > > Are we discussing the usefulness of the function, or are we discussing > how best to implement it? > > > We are discussing for which cases it can be implemented. It can be implemented and would be useful for a > wide range of functions, such as those defined with defun. It cannot be implemented for functions like g; that's > just a limitation we have to live with. That's one possibility. Another is that the implementation will be able to find out the truth, just like the Lisp interpreter does.