[Top][All Lists]

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

Re: if-let/if-let*/and-let/..

From: Eli Zaretskii
Subject: Re: if-let/if-let*/and-let/..
Date: Sat, 10 Mar 2018 19:29:21 +0200

> From: Michael Heerdegen <address@hidden>
> Cc: address@hidden,  address@hidden
> Date: Sat, 10 Mar 2018 18:16:37 +0100
> Then this is what I have so far:

LGTM, thanks.

> But we still can't use this, because the documentation of if-let and
> when-let in emacs-26 refers to the documentation of if-let* and
> when-let*.  I would at least also have to rewrite the docstrings of
> if-let and when-let.  I'm beginning to wonder if what we are
> constructing here is really simpler than my initial approach.

It might not be a lot simpler, but it's certainly safer, since changes
in doc string can never cause any breakage.

> BTW, the srfi-2 allows a SYMBOL as element of the binding spec.  AFAIK
> all of the macros (foo-let and foo-let*) support that case, but it's not
> documented.  I dunno why, the original author, Mark Oteiza
> <address@hidden>, didn't respond to my questions in emacs-dev.  My
> guess is that it hasn't been documented because the foo-let
> single-binding case intersects with this syntax.

If you decide to add this to the documentation, it's fine by me.

reply via email to

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