bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#48212: [PATCH] subr-x.el: Added `while-let` and `while-let*`


From: Lars Ingebrigtsen
Subject: bug#48212: [PATCH] subr-x.el: Added `while-let` and `while-let*`
Date: Wed, 12 May 2021 20:57:11 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hu Lucius <orctarorga@gmail.com> writes:

> I've added two functions in `subr-x`, `while-let` and `while-let*`.
>
> `(while-let SPEC BODY)` evaluate each binding in turn and stop if a
> binding value is nil.
> BODY is evaluated repeatedly until a binding value is nil.
>
> `(while-let* VARLIST BODY)` is like `while-let` except VARLIST is of
> the form ((SYMBOL SOMETHING) ...).

Thank you, but I think these macros don't really give enough
functionality to warrant adding them to Emacs -- in general, using
`cl-loop' when you have conditions like this makes more sense, since it
gives you more control over the conditions and the return values.

So I'm closing this bug report.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

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