On Oct 18, 5:27 am, Christophe Grand <christo...@cgrand.net> wrote:
> (defmacro while-let
>  "Makes it easy to continue processing an expression as long as it is true"
>  [binding & forms]
>   `(loop []
>      (when-let ~binding
>       �...@forms
>        (recur))))

Nice! Would you be willing to add it to contrib? I've found while-let
a very useful form and this version is really neat.

Where should it belong I wonder... the most related thing I could see
in contrib was:
http://richhickey.github.com/clojure-contrib/cond-api.html#cond/cond-let
Maybe cond-let and while-let should fall under 'let' instead of
'cond', or 'core' seeing they are slight extensions of core functions.


Regards,
Tim.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to