[Top][All Lists]

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

Re: master 12f63c18f6 1/2: Add new macro 'while-let'

From: Philip Kaludercic
Subject: Re: master 12f63c18f6 1/2: Add new macro 'while-let'
Date: Sun, 16 Oct 2022 09:26:59 +0000

Lars Ingebrigtsen <larsi@gnus.org> writes:

> Philip Kaludercic <philipk@posteo.net> writes:
>> On that topic, why do we have `and-let*' and no `and-let'?
> I'd rather ask "why do we have and-let at all"?  😀
> If you look at the in-tree usages of and-let*, most of them should
> clearly have been when-let instead, so I think it was a mistake to add
> and-let.

I have recently started appreciating `and-let*' when I want to make it
explicit that the last binding is the return value, but I guess that any

    (and-let* ((foo bar) ... (baz qux)))

is the same as

    (when-let ((foo bar) ...) (baz qux))

reply via email to

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