unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
* Anaphoric macros like when-let
@ 2017-08-26 19:47 Arun Isaac
  2017-08-26 19:50 ` Matt Wette
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Arun Isaac @ 2017-08-26 19:47 UTC (permalink / raw)
  To: Guile User


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))



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-08-28  9:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-26 19:47 Anaphoric macros like when-let Arun Isaac
2017-08-26 19:50 ` Matt Wette
2017-08-26 19:54   ` Matt Wette
2017-08-27 12:28   ` Arun Isaac
2017-08-26 22:40 ` Kyle Siehl
2017-08-27 20:24 ` Mark H Weaver
2017-08-28  9:41   ` Arun Isaac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).