emacs-devel
[Top][All Lists]
Advanced

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

Re: Sweeter Emacs Lisp


From: Stefan Monnier
Subject: Re: Sweeter Emacs Lisp
Date: Mon, 15 Jul 2013 03:04:09 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

>> ;; clojure.core/if-let
>> ;; ([bindings then] [bindings then else & oldform])
>> ;; Macro
>> ;;  bindings => binding-form test
>> ;;  If test is true, evaluates then with binding-form bound to the value of
>> ;;  test, if not, yields else

We get pretty close with

   (pcase TEST
     (`nil ELSE)
     (BINDING-FORM THEN))


-- Stefan



reply via email to

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