emacs-devel
[Top][All Lists]
Advanced

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

Re: if-let and when-let: parallel or sequential


From: Richard Stallman
Subject: Re: if-let and when-let: parallel or sequential
Date: Mon, 11 Aug 2014 23:15:27 -0400

[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]

    > if-let and when-let don t make much sense with more than one binding
    > form.

    Why do you think so?  If they only work for a single binding, the
    benefit is really minor.  It's only when you use several bindings that
    the benefit becomes more significant (the alternative being either
    a very deeply nested code, or separating the var's declarations from
    their initialization).

With several sequential bindings, the alternative is

 (let* ...bindings...
   (if ...))

Thus, if-let saves just one level of nesting
even if there are several bindings.

-- 
Dr Richard Stallman
President, Free Software Foundation
51 Franklin St
Boston MA 02110
USA
www.fsf.org  www.gnu.org
Skype: No way! That's nonfree (freedom-denying) software.
  Use Ekiga or an ordinary phone call.




reply via email to

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