From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Drew Adams <drew.adams@oracle.com> Newsgroups: gmane.emacs.devel Subject: RE: Docs for &optional and &rest arguments together Date: Thu, 31 Dec 2020 12:27:45 -0800 (PST) Message-ID: <35995ba0-22de-4b81-b309-918ac8a733b6@default> References: <AM0PR06MB657709C899365FC0710F505496D80@AM0PR06MB6577.eurprd06.prod.outlook.com> <87o8icq958.fsf@gnus.org> <AM0PR06MB6577D086DD918C31A82C283F96D70@AM0PR06MB6577.eurprd06.prod.outlook.com> <877doyoa9g.fsf@gnus.org> <AM0PR06MB6577D9BA42B23A9AE54D0EDC96D60@AM0PR06MB6577.eurprd06.prod.outlook.com> <20201231112634.GA5158@tuxteam.de>> <<ac2d2cf0-db77-45e3-bc13-489bfd8c8a4b@default> <AM0PR06MB6577B7DEE2DE5A00D2E3166E96D60@AM0PR06MB6577.eurprd06.prod.outlook.com>> <<f3114415-7c6e-4554-bc9d-2b60371c622b@default> <AM0PR06MB6577BCB614985C4BCE5D8D5E96D60@AM0PR06MB6577.eurprd06.prod.outlook.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="__160944646664258481abhmp0002.oracle.com" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36153"; mail-complaints-to="usenet@ciao.gmane.io" To: arthur miller <arthur.miller@live.com>, tomas@tuxteam.de, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 31 21:29:14 2020 Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> 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 <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1kv4ZN-00092N-J8 for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 21:29:13 +0100 Original-Received: from localhost ([::1]:56492 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org>) id 1kv4ZM-0002SH-LV for ged-emacs-devel@m.gmane-mx.org; Thu, 31 Dec 2020 15:29:12 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:52480) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <drew.adams@oracle.com>) id 1kv4Y8-00021m-80 for emacs-devel@gnu.org; Thu, 31 Dec 2020 15:27:56 -0500 Original-Received: from aserp2120.oracle.com ([141.146.126.78]:52762) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <drew.adams@oracle.com>) id 1kv4Y5-0006od-QK for emacs-devel@gnu.org; Thu, 31 Dec 2020 15:27:55 -0500 Original-Received: from pps.filterd (aserp2120.oracle.com [127.0.0.1]) by aserp2120.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BVKPVR7118719; Thu, 31 Dec 2020 20:27:49 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=mime-version : message-id : date : from : sender : to : subject : references : in-reply-to : content-type; s=corp-2020-01-29; bh=CBjVLFH1baKebmTqiwYzfq0WUS/Dsr7ghUWisn7kDAE=; b=VEAGS//uH8HykmjMOVoscBaAxdW99ATyPNoUbd9fZ4UEjJfmc2JoNF7rUqUGOOFmEKi3 HsLyf+h//KhvPhdYyy+4XKXgdcV/cGdnw/tig5AMJEP2WkXmgilEYtkRhA/FvHPPn8pl j2M2cdDsH7JoprhGR3KI4Ddyqe+E44VXq/87faRCvKUHh2a6Mhx1dH/GRKsBg6wfDQJ/ Uz+rCrHWpbJ4P33a/HAIeTWYCmmqJmAY2ACuQy0lHrMTWMGf9YxFGccGULikSbL1M9E1 NRMEfUHbk6kLQE+JRzni41nJ4QKgwxnMJs7xQ8b9h8vipP+rngVV7ew5DzfNS4IsgHlB pQ== Original-Received: from aserp3030.oracle.com (aserp3030.oracle.com [141.146.126.71]) by aserp2120.oracle.com with ESMTP id 35phm1jpky-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Thu, 31 Dec 2020 20:27:49 +0000 Original-Received: from pps.filterd (aserp3030.oracle.com [127.0.0.1]) by aserp3030.oracle.com (8.16.0.42/8.16.0.42) with SMTP id 0BVKQ7YC011026; Thu, 31 Dec 2020 20:27:48 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by aserp3030.oracle.com with ESMTP id 35perpjwk5-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 31 Dec 2020 20:27:48 +0000 Original-Received: from abhmp0002.oracle.com (abhmp0002.oracle.com [141.146.116.8]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id 0BVKRlQC000969; Thu, 31 Dec 2020 20:27:47 GMT In-Reply-To: <AM0PR06MB6577BCB614985C4BCE5D8D5E96D60@AM0PR06MB6577.eurprd06.prod.outlook.com> X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9.1 (1003210) [OL 16.0.5095.0 (x86)] X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9851 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 adultscore=0 mlxlogscore=999 mlxscore=0 malwarescore=0 bulkscore=0 phishscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012310122 X-Proofpoint-Virus-Version: vendor=nai engine=6000 definitions=9851 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 adultscore=0 bulkscore=0 malwarescore=0 spamscore=0 impostorscore=0 phishscore=0 clxscore=1015 lowpriorityscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2009150000 definitions=main-2012310122 Received-SPF: pass client-ip=141.146.126.78; envelope-from=drew.adams@oracle.com; helo=aserp2120.oracle.com X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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." <emacs-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/emacs-devel> List-Post: <mailto:emacs-devel@gnu.org> List-Help: <mailto:emacs-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/emacs-devel>, <mailto:emacs-devel-request@gnu.org?subject=subscribe> Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" <emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org> Xref: news.gmane.io gmane.emacs.devel:262204 Archived-At: <http://permalink.gmane.org/gmane.emacs.devel/262204> --__160944646664258481abhmp0002.oracle.com Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable I'm not reflecting on who said anything. Just trying to help, as are others. Happy New Year to you, too. =20 It is New Year Eve Drew. The best lady of all best ladies deserves attentio= n, and I certainly have no need to read references to CL standards and hist= orical mailings etc.=20 =20 Whatever CL does, who cares, they can do what they want and document what t= hey want. I am pointing at a piece of Elisp documentation which can be bett= er. =20 But it's not lack of attention, if you actually reflect over what I said, i= nstead of who said it, maybe you will see it too.=20 =20 Happy New Year, I wish you all best in next year! =20 > I have glanced through though, maybe I am missing it. =20 Don't just glance. Give it the attention that it and your understanding bot= h deserve. If that CL doc didn't help you then I really suggest you sit dow= n, take it slowly, and reread carefully. =20 Both the Elisp doc and the CL doc about this are clear and complete, I thin= k. I suggest with respect that you're maybe just not paying enough attentio= n. =20 Don't be in a hurry. The info is there; just give it a chance - and another= read. =20 The CL link is not documentation, it is an essay, entire novel :-). But int= erestingly, that do not touch on that case either . I have glanced through = though, maybe I am missing it.=20 =20 > > I don't read it says both c and d are required > > when &rest is also used. >=20 > You just have to squint the other way .-) > They are not "required". They are provided -- in the call. It's just > that c is served first, d next, and all the rest (if any) goes to e: If someone finds the Elisp doc about lambda lists, I recommend consulting the Common Lisp doc (CLTL2) about it. Common Lisp lambda lists allow more stuff (&keys, &aux etc.), but for the things that Elisp has (&optional, &rest) the behavior is the same. The language in CLTL2 is quite precise. It too merits being read carefully, but I think it spells things out quite clearly. This is the section about lambda lists, which covers &optional and &rest: HYPERLINK "https://urldefense.com/v3/__https:/www.cs.cmu.edu/Groups/AI/html= /cltl/clm/node64.html*SECTION00922000000000000000__;Iw!!GqivPVa7Brio!PxyUBv= Vt3a4Eze6ZtyLlEC6A236XgfttZKnn-7gkT1H6p1FBymyit-C_eQf2-wZH$"https://www.cs.= cmu.edu/Groups/AI/html/cltl/clm/node64.html#SECTION00922000000000000000 With that, plus the Elisp doc, plus this thread, I think things will become more clear. HTH. --__160944646664258481abhmp0002.oracle.com Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: quoted-printable <html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr= osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" = xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:= //www.w3.org/TR/REC-html40"><head><META HTTP-EQUIV=3D"Content-Type" CONTENT= =3D"text/html; charset=3Dus-ascii"><meta name=3DGenerator content=3D"Micros= oft Word 15 (filtered medium)"><style><!-- /* Font Definitions */ @font-face =09{font-family:"Cambria Math"; =09panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face =09{font-family:Calibri; =09panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face =09{font-family:"Trebuchet MS"; =09panose-1:2 11 6 3 2 2 2 2 2 4;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal =09{margin:0in; =09margin-bottom:.0001pt; =09font-size:12.0pt; =09font-family:"Times New Roman",serif;} a:link, span.MsoHyperlink =09{mso-style-priority:99; =09color:blue; =09text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed =09{mso-style-priority:99; =09color:purple; =09text-decoration:underline;} p.msonormal0, li.msonormal0, div.msonormal0 =09{mso-style-name:msonormal; =09mso-margin-top-alt:auto; =09margin-right:0in; =09mso-margin-bottom-alt:auto; =09margin-left:0in; =09font-size:12.0pt; =09font-family:"Times New Roman",serif;} p.msonormal00, li.msonormal00, div.msonormal00 =09{mso-style-name:msonormal0; =09mso-margin-top-alt:auto; =09margin-right:0in; =09mso-margin-bottom-alt:auto; =09margin-left:0in; =09font-size:12.0pt; =09font-family:"Times New Roman",serif;} p.emailquote, li.emailquote, div.emailquote =09{mso-style-name:emailquote; =09mso-margin-top-alt:auto; =09margin-right:0in; =09mso-margin-bottom-alt:auto; =09margin-left:1.0pt; =09font-size:12.0pt; =09font-family:"Times New Roman",serif;} p.msochpdefault, li.msochpdefault, div.msochpdefault =09{mso-style-name:msochpdefault; =09mso-margin-top-alt:auto; =09margin-right:0in; =09mso-margin-bottom-alt:auto; =09margin-left:0in; =09font-size:10.0pt; =09font-family:"Times New Roman",serif;} span.emailstyle19 =09{mso-style-name:emailstyle19; =09font-family:"Trebuchet MS",sans-serif; =09color:#1F4E79;} span.EmailStyle22 =09{mso-style-type:personal-reply; =09font-family:"Trebuchet MS",sans-serif; =09color:#1F4E79;} .MsoChpDefault =09{mso-style-type:export-only; =09font-size:10.0pt;} @page WordSection1 =09{size:8.5in 11.0in; =09margin:1.0in 1.0in 1.0in 1.0in;} div.WordSection1 =09{page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=3D"edit"> <o:idmap v:ext=3D"edit" data=3D"1" /> </o:shapelayout></xml><![endif]--></head><body lang=3DEN-US link=3Dblue vli= nk=3Dpurple><div class=3DWordSection1><p class=3DMsoNormal><span style=3D'f= ont-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F4E79'>I'm no= t reflecting on who said anything. Just trying to help,<o:p></o:p></span></= p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Trebuch= et MS",sans-serif;color:#1F4E79'>as are others. Happy New Year to you, too.= <o:p></o:p></span></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;= font-family:"Trebuchet MS",sans-serif;color:#1F4E79'><o:p> </o:p></spa= n></p><div style=3D'border:none;border-left:solid blue 1.5pt;padding:0in 0i= n 0in 4.0pt'><p class=3DMsoNormal>It is New Year Eve Drew. The best lady of= all best ladies deserves attention, and I certainly have no need to read r= eferences to CL standards and historical mailings etc. <o:p></o:p></p><div>= <p class=3DMsoNormal><o:p> </o:p></p></div><div><p class=3DMsoNormal>W= hatever CL does, who cares, they can do what they want and document what th= ey want. I am pointing at a piece of Elisp documentation which can be bette= r.<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p> </o:p></p></div= ><div><p class=3DMsoNormal>But it's not lack of attention, if you actually = reflect over what I said, instead of who said it, maybe you will see it too= . <o:p></o:p></p></div><div><p class=3DMsoNormal><o:p> </o:p></p>= </div><div><p class=3DMsoNormal>Happy New Year, I wish you all best in next= year!<o:p></o:p></p></div><div><p class=3DMsoNormal><o:p> </o:p></p><= /div><div><div><p class=3DMsoNormal>> I have glanced through though, may= be I am missing it.<o:p></o:p></p><p class=3DMsoNormal><span style=3D'font-= size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F4E79'> </sp= an><o:p></o:p></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font= -family:"Trebuchet MS",sans-serif;color:#1F4E79'>Don't just <i>glance</i>. = Give it the attention that it and your understanding both deserve. If that = CL doc didn't help you then I really suggest you sit down, take it slowly, = and reread carefully.</span><o:p></o:p></p><p class=3DMsoNormal><span style= =3D'font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1F4E79'>&= nbsp;</span><o:p></o:p></p><p class=3DMsoNormal><span style=3D'font-size:10= .0pt;font-family:"Trebuchet MS",sans-serif;color:#1F4E79'>Both the Elisp do= c and the CL doc about this are clear and complete, I think. I suggest with= respect that you're maybe just not paying enough attention.</span><o:p></o= :p></p><p class=3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Tr= ebuchet MS",sans-serif;color:#1F4E79'> </span><o:p></o:p></p><p class= =3DMsoNormal><span style=3D'font-size:10.0pt;font-family:"Trebuchet MS",san= s-serif;color:#1F4E79'>Don't be in a hurry. The info is there; just give it= a chance - and another read.</span><o:p></o:p></p><p class=3DMsoNormal><sp= an style=3D'font-size:10.0pt;font-family:"Trebuchet MS",sans-serif;color:#1= F4E79'> </span><o:p></o:p></p><div style=3D'border:none;border-left:so= lid blue 1.5pt;padding:0in 0in 0in 4.0pt'><div><p class=3DMsoNormal>The CL = link is not documentation, it is an essay, entire novel :-). But interestin= gly, that do not touch on that case either . I have glanced through though,= maybe I am missing it. <o:p></o:p></p><div><p class=3DMsoNormal> <o:p= ></o:p></p></div></div><div><p class=3DMsoNormal style=3D'margin-bottom:12.= 0pt'><span style=3D'font-size:11.0pt'>> > I don't read it says both c= and d are required<br>> > when &rest is also used.<br>> <br>&= gt; You just have to squint the other way .-)<br>> They are not "re= quired". They are provided -- in the call. It's just<br>> that c is= served first, d next, and all the rest (if any) goes to e:<br><br>If someo= ne finds the Elisp doc about lambda lists,<br>I recommend consulting the Co= mmon Lisp doc (CLTL2)<br>about it. Common Lisp lambda lists allow mor= e stuff<br>(&keys, &aux etc.), but for the things that Elisp<br>has= (&optional, &rest) the behavior is the same.<br><br>The language i= n CLTL2 is quite precise. It too<br>merits being read carefully, but = I think it spells<br>things out quite clearly.<br><br>This is the section a= bout lambda lists, which covers<br>&optional and &rest:<br><br><a h= ref=3D"https://urldefense.com/v3/__https:/www.cs.cmu.edu/Groups/AI/html/clt= l/clm/node64.html*SECTION00922000000000000000__;Iw!!GqivPVa7Brio!PxyUBvVt3a= 4Eze6ZtyLlEC6A236XgfttZKnn-7gkT1H6p1FBymyit-C_eQf2-wZH$">https://www.cs.cmu= .edu/Groups/AI/html/cltl/clm/node64.html#SECTION00922000000000000000</a><br= ><br>With that, plus the Elisp doc, plus this thread,<br>I think things wil= l become more clear. HTH.</span><o:p></o:p></p></div></div></div></di= v></div></div></body></html> --__160944646664258481abhmp0002.oracle.com--