all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Philipp Stephani <p.stephani2@gmail.com>
To: Drew Adams <drew.adams@oracle.com>,
	Michael Heerdegen <michael_heerdegen@web.de>
Cc: 25017@debbugs.gnu.org
Subject: bug#25017: Fwd: Re: dotimes var comiler warning
Date: Sun, 27 Nov 2016 20:11:44 +0000	[thread overview]
Message-ID: <CAArVCkStk6ZPemcbKR9iiHvN2BEkxgFyEsR-yPzsToyaHdL-fQ@mail.gmail.com> (raw)
In-Reply-To: <555aa16a-98d0-4427-9db1-ca4f857a6ddd@default>

[-- Attachment #1: Type: text/plain, Size: 1148 bytes --]

Drew Adams <drew.adams@oracle.com> 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.

[-- Attachment #2: Type: text/html, Size: 2103 bytes --]

  reply	other threads:[~2016-11-27 20:11 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-24 12:47 dotimes var comiler warning Andreas Röhler
2016-11-24 12:53 ` Joost Kremers
2016-11-24 13:59   ` Andreas Röhler
2016-11-24 13:32 ` Michael Heerdegen
2016-11-24 14:10   ` bug#25017: Fwd: " Andreas Röhler
2016-11-24 14:23     ` npostavs
2016-11-24 14:35       ` Michael Heerdegen
2016-11-24 14:44     ` Michael Albinus
2016-11-24 16:50       ` Michael Heerdegen
2016-11-24 17:01         ` Michael Heerdegen
2016-11-25  6:03           ` Drew Adams
2016-11-27 10:20             ` Michael Heerdegen
2016-11-27 18:23               ` Drew Adams
2016-11-27 20:11                 ` Philipp Stephani [this message]
2016-11-28 16:31                   ` Michael Heerdegen
2016-11-28 16:54                     ` Drew Adams
2016-11-24 14:14   ` Andreas Röhler
2016-12-01 23:08     ` Emanuel Berg
2016-11-24 20:51   ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAArVCkStk6ZPemcbKR9iiHvN2BEkxgFyEsR-yPzsToyaHdL-fQ@mail.gmail.com \
    --to=p.stephani2@gmail.com \
    --cc=25017@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    --cc=michael_heerdegen@web.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.