From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Philipp Stephani Newsgroups: gmane.emacs.bugs Subject: bug#25017: Fwd: Re: dotimes var comiler warning Date: Sun, 27 Nov 2016 20:11:44 +0000 Message-ID: References: <878ts957gj.fsf@web.de> <266831cc-e199-35b0-9564-327c192b2ea6@easy-emacs.de> <87zikpkkej.fsf@gmx.de> <87ziko4yaq.fsf@web.de> <87vavc4xsx.fsf@web.de> <34f65954-78b3-4063-a971-cc020e482677@default> <87mvglusuh.fsf@web.de> <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a1148d9fe7adcac05424df7b5 X-Trace: blaine.gmane.org 1480277598 12456 195.159.176.226 (27 Nov 2016 20:13:18 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 27 Nov 2016 20:13:18 +0000 (UTC) Cc: 25017@debbugs.gnu.org To: Drew Adams , Michael Heerdegen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Nov 27 21:13:14 2016 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB5p3-0002gd-O2 for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 21:13:14 +0100 Original-Received: from localhost ([::1]:55469 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB5p7-0005re-GB for geb-bug-gnu-emacs@m.gmane.org; Sun, 27 Nov 2016 15:13:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cB5ow-0005rC-5e for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:13:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cB5ot-0006oR-1U for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:13:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:56706) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cB5os-0006oN-TL for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:13:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cB5os-0000gc-OH for bug-gnu-emacs@gnu.org; Sun, 27 Nov 2016 15:13:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Philipp Stephani Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Nov 2016 20:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25017 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25017-submit@debbugs.gnu.org id=B25017.14802775232548 (code B ref 25017); Sun, 27 Nov 2016 20:13:02 +0000 Original-Received: (at 25017) by debbugs.gnu.org; 27 Nov 2016 20:12:03 +0000 Original-Received: from localhost ([127.0.0.1]:43867 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB5nv-0000f2-2z for submit@debbugs.gnu.org; Sun, 27 Nov 2016 15:12:03 -0500 Original-Received: from mail-wm0-f50.google.com ([74.125.82.50]:36710) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cB5nt-0000eV-2z for 25017@debbugs.gnu.org; Sun, 27 Nov 2016 15:12:01 -0500 Original-Received: by mail-wm0-f50.google.com with SMTP id g23so187848512wme.1 for <25017@debbugs.gnu.org>; Sun, 27 Nov 2016 12:12:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=BC3i53Btl7dHRuYKqlmR2IKdqC7vM2b2gbDNr2nIYzQ=; b=Mk5yVBz8FYbe8Fba+qnPs+uuSzpdrAHbQFSOfEPWqh9IEz6nJxtE6rZfBDU0g76Ci1 rd/epG6+bMkzE8UqnG1kwnKp1I4SjHat0LoYtS+I0MBYCDZqCDbaZ9cmt+K234KeK2BD 1Wmzjf0Giz0dvl4UfCT/50epE60/MmG4xTJgYv9MDw3++ki/fdxb0zmf/pcD3BuYhJQT I/x+7r1yjCCqHbXmR1JpeLDt1UbjAqprJKdyiNRoXfnNuvZWXbZ6L0KccJ5xwflyyXlw wihql4j/6gC/S2MMQqsxSsi+C2FmCm1e0HqVv6eEoVT+KcnY3Q9UUEPEjXN3Fm8Vj4Fl 4U/A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=BC3i53Btl7dHRuYKqlmR2IKdqC7vM2b2gbDNr2nIYzQ=; b=MPVo7KBZVKDu3SBPKmdBQ6a80GxJMxchSYJNBlq5GnJB+VCJ7hr27W/vML2oBG727X GgugikmShGYr+P91j2eIsng4acJuytHtM/O2neOaP7S8hzsqfH++Ti8D59McZ66Ux3E3 3BYIxm5XplW76vsqB1Vld6cxdOA442fCP8xZjKLbOUfItN2RICZ85TsChRuuQCYvzHTq fh2RDTFz32agAijTIKvSzVRatp1mGuLbUeitv5M4tfV/UjKxuFucjJ67pGucNiv08r3p xd5lSFqUspucW9LW8JIviezVgV+NNDn3Gs8c7NEcif0vu1TuT04Uv7xv5OfNdyxR+7Ri k4jA== X-Gm-Message-State: AKaTC00QFH3dtK32fkNPNBWPCtTrv692FRGr/kLZl8t7jVPMKpyCiwbLUuKmRtWqAnqoPZD3WmhVuv3lPEIJIg== X-Received: by 10.28.195.9 with SMTP id t9mr15165296wmf.92.1480277515490; Sun, 27 Nov 2016 12:11:55 -0800 (PST) In-Reply-To: <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:126189 Archived-At: --001a1148d9fe7adcac05424df7b5 Content-Type: text/plain; charset=UTF-8 Drew Adams schrieb am So., 27. Nov. 2016 um 19:25 Uhr: > > > FWIW, I think that if any changes are made to dotimes they > > > should be in the direction of Common Lisp dotimes. > > > > How do Elisp's dotimes and Common Lisp's dotimes differ? > > http://clhs.lisp.se/Body/m_dotime.htm > > It respects `return' and `return-from'. It allows tags > (for `go'). > A variant of `dotimes' that supports such constructs (only the "return" ones though) is available in cl-lib.el: `cl-dotimes'. > > For purposes of this thread: As in Emacs Lisp, both VAR > and COUNT are required arguments. In general, I'd prefer > that Emacs Lisp not diverge from but converge toward > Common Lisp. > > > The (implicit) decision to diverge further from Common Lisp has been made a while ago, by prefixing the CL functions with `cl' and importing the `seq' and `map' libraries, which provide similar functionality, but with a different interface. Regarding third-party package, the hugely popular `dash' library advertises itself with "No CL required." Given these indicators, I'd expect the divergence to increase further instead of decrease. --001a1148d9fe7adcac05424df7b5 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


Drew A= dams <drew.adams@oracle.com= > schrieb am So., 27. Nov. 2016 um 19:25=C2=A0Uhr:
> > FWIW, I think that if any changes are made to = dotimes they
> > should be in the direction of Common Lisp dotimes.
>
> How do Elisp's dotimes and Common Lisp's dotimes differ?

http://clhs.lisp.se/Body/m_dotime.htm<= br class=3D"gmail_msg">
It respects `return' and `return-from'.=C2=A0 It allows tags
(for `go').

A v= ariant of `dotimes' that supports such constructs (only the "retur= n" ones though) is available in cl-lib.el: `cl-dotimes'.
=C2=A0

For purposes of this thread: As in Emacs Lisp, both VAR
and COUNT are required arguments.=C2=A0 In general, I'd prefer
that Emacs Lisp not diverge from but converge toward
Common Lisp.



The (implicit) dec= ision to diverge further from Common Lisp has been made a while ago, by pre= fixing the CL functions with `cl' and importing the `seq' and `map&= #39; libraries, which provide similar functionality, but with a different i= nterface. Regarding third-party package, the hugely popular `dash' libr= ary advertises itself with "No CL required." Given these indicato= rs, I'd expect the divergence to increase further instead of decrease.<= /div>
--001a1148d9fe7adcac05424df7b5--