all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Robert Pluim <rpluim@gmail.com>
To: Philip Kaludercic <philipk@posteo.net>
Cc: "Mattias Engdegård" <mattiase@acm.org>, emacs-devel@gnu.org
Subject: Re: The FIXME in `dotimes'
Date: Wed, 07 Sep 2022 16:29:42 +0200	[thread overview]
Message-ID: <875yhzb6ll.fsf@gmail.com> (raw)
In-Reply-To: <87o7vrnu65.fsf@posteo.net> (Philip Kaludercic's message of "Wed,  07 Sep 2022 14:19:46 +0000")

>>>>> On Wed, 07 Sep 2022 14:19:46 +0000, Philip Kaludercic <philipk@posteo.net> said:

    Philip> Mattias Engdegård <mattiase@acm.org> writes:
    >> 7 sep. 2022 kl. 15.37 skrev Philip Kaludercic <philipk@posteo.net>:
    >> 
    >>> (dotimes (count) ...)
    >> 
    >> Lisp syntax rarely make the first element optional, and in this case
    >> it's both the first and the last one:
    >> 
    >> (dotimes ([VAR] COUNT [RESULT]) BODY...)
    >> 
    >> which is a bit alien, and it's perhaps not worth the trouble for just
    >> omitting an underscore?
    >> 
    >>> (dotimes count ...)
    >> 
    >> That wouldn't allow for arbitrary expressions so it's of limited
    >> utility (and Lisp-alien, again). There's also the risk that someone
    >> will eventually replace a variable by a function call, turning
    >> (dotimes x ...) into (dotimes (f x) ...).

    Philip> I agree, the idea was not well thought out and not worth the
    Philip> complication.

Surely the goal here should be to borrow a name from other languages,
but have the result behave differently?

(defmacro range (count &rest body)

😜

Robert
-- 



  reply	other threads:[~2022-09-07 14:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-07 10:22 The FIXME in `dotimes' Philip Kaludercic
2022-09-07 12:13 ` Mattias Engdegård
2022-09-07 13:35   ` Philip Kaludercic
2022-09-07 13:37   ` Philip Kaludercic
2022-09-07 14:08     ` Mattias Engdegård
2022-09-07 14:19       ` Philip Kaludercic
2022-09-07 14:29         ` Robert Pluim [this message]
2022-09-07 15:18         ` [External] : " Drew Adams
2022-09-07 15:26           ` Philip Kaludercic

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=875yhzb6ll.fsf@gmail.com \
    --to=rpluim@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=mattiase@acm.org \
    --cc=philipk@posteo.net \
    /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.