[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: request for a new function, say, `sequence'

From: Luc Teirlinck
Subject: Re: request for a new function, say, `sequence'
Date: Thu, 27 Mar 2003 09:53:01 -0600 (CST)

Stefan Monnier wrote:

   How about

           (dotimes (VAR [START END] RESULT) BODY...)

I do not completely understand this.  You do not really mean to make
END optional and have dotimes loop forever unless the loop is exited
by a catch-throw or similar?  Your proposal also seems to be violating
Elisp practice of putting optional arguments at the end (except for
&rest).  Or do you mean to specify [START END] as a vector?

I believe

(dotimes (VAR COUNT [RESULT START]) BODY...)) might be less confusing
(making the syntax more like iota).  

At the limit, one could even do

(dotimes (VAR COUNT [RESULT START INTERVAL]) BODY...) to make the iota
analogy complete, but I doubt that would be needed sufficiently often
to make it worthwhile.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]