guile-user
[Top][All Lists]
Advanced

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

Anaphoric macros like when-let


From: Arun Isaac
Subject: Anaphoric macros like when-let
Date: Sun, 27 Aug 2017 01:17:13 +0530

Is there a Scheme or Guile equivalent to Emacs Lisp's `when-let' ?

Basically, I'm looking for a shorthand to express this:

(let ((x (foo))
  (when x
    (bar x))))

as this:

(when-let (x (foo))
  (bar x))



reply via email to

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