Could you do this w/ a lazy seq & cond?  The seq terminates early if
cond x is met.

On Nov 1, 8:04 pm, CuppoJava <patrickli_2...@hotmail.com> wrote:
> Hi,
> For the purposes of a DSL that I'm writing, it would be very
> convenient to have a break/return statement that early exits from a
> subroutine.
>
> Is it possible to implement this in Clojure? or any Lisp-like
> language?
>
> I've given it some thought and it seems it has to be a compiler level
> feature. Am I right?
>
> Thanks
>   -Patrick
--~--~---------~--~----~------------~-------~--~----~
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