[Top][All Lists]

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

Re: Why is there no `until' in elisp?

From: Stefan Monnier
Subject: Re: Why is there no `until' in elisp?
Date: Fri, 19 Oct 2018 11:28:02 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> I have nothing to do with this, but my feeling is that Lisp developers
> in general drag their feet about adding trivial/obvious constructs to
> the standard library. As your footnote makes clear, it's a two-line code
> addition to make `until' work. There are different schools of thought
> about this: one that says "why?", and one that says "why not"? The "why
> not"s contribute to subr.el and subr-x.el :)

Personally, I grew fond of `until` and wanted to add it (even went to
the trouble of writing the corresponding byte-compiler code), but really
in 99% of the cases, you can just negate the test so the benefit
in minuscule.  But if we could go back in time, then I would definitely
replace `while` with `until`.


reply via email to

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