From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: "tomas@tuxteam.de" Newsgroups: gmane.emacs.devel Subject: Re: Docs for &optional and &rest arguments together Date: Thu, 31 Dec 2020 20:40:40 +0100 Message-ID: <20201231194040.GA26414@tuxteam.de> References: <87o8icq958.fsf@gnus.org> <877doyoa9g.fsf@gnus.org> <20201231112634.GA5158@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="sdtB3X0nJg68CQEu" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34180"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.5.21 (2010-09-15) Cc: "emacs-devel@gnu.org" To: arthur miller Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 31 20:41:42 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kv3pO-0008ot-P8 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 20:41:42 +0100 Original-Received: from localhost ([::1]:36646 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kv3pN-0006uC-S5 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 14:41:41 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:44820) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kv3oT-0006Rc-Dl for emacs-devel@gnu.org; Thu, 31 Dec 2020 14:40:45 -0500 Original-Received: from mail.tuxteam.de ([5.199.139.25]:49359) by eggs.gnu.org with esmtps (TLS1.2:DHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.90_1) (envelope-from ) id 1kv3oR-0007Sc-22 for emacs-devel@gnu.org; Thu, 31 Dec 2020 14:40:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tuxteam.de; s=mail; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=iSrIgy69MojfoyNJMbRSIZIkbKfE4Jct86YKcnMbEcQ=; b=UR1ZFWSU2WFlGt2PYtDyVf83iKFilPhb1owxwjU7P1B15zF2Jbgt/9GX5KlmeoGiqJrmiZr5zzDtN6k8aGtywu2AtQTWxAdd8V5KrPsi3whl56Xmg0lw9/sA2XBOAoKgJJaQ/VOC7GmBpF4JnvwbNIYoO2o7DKo2XCTHmBUnd5Rn/xqmBuA1manPxxR9GS16dW1XBb390W51B3KtugFz/RCP+qxPKGUC+Olclz0BpIWQV7K3JhIip0EAceCWFvz7gjnbfiW+33hXW9zfL56rF9LRAcIHxOCst2zJF5TZkGHqnmuGQ0sC0glBzP7mAdYfp6twicF+a0qZ65z6X6YPSw==; Original-Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1kv3oO-0006zi-Am; Thu, 31 Dec 2020 20:40:40 +0100 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=5.199.139.25; envelope-from=tomas@tuxteam.de; helo=mail.tuxteam.de X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:262196 Archived-At: --sdtB3X0nJg68CQEu Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Dec 31, 2020 at 05:08:10PM +0000, arthur miller wrote: > It Is flera f=C3=B6r me hos it work. What I am saying is that docs does n= ot say that we can't omit "optional" c or d when &rest is used. In the exam= ples you are illustrating with, one can't omit say d and write (foo a b c = e), both c and d are required, so user has to pass explicitly at least nil= if not d is provided: (foo a b c nil e) >=20 > Documentation is talking about being able to omit either optional or rest= arga, but does not touch on the case when one pass both optional and rest = together. In that case optional is not optional any longer. >=20 > I don't understand why is it so difficult to see what I am talking about = :-). I know, it's difficult. It's as difficult for me to see your point. I'm not being deliberately dense (I take you don't assume that either). At least not more than I am by nature :) > Anyway: Happy new year's eve and all best in 2021! Likewise. All the best! Cheers - t --sdtB3X0nJg68CQEu Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAl/uKTgACgkQBcgs9XrR2kbE9gCfWfdiKadOGmuonfTIAkrSCZTi X2gAmwawl1OdGAdMkAMlpPoUEBzjc/On =Fnvh -----END PGP SIGNATURE----- --sdtB3X0nJg68CQEu--