Laziness is sometimes confusing :)

On Thu, Feb 5, 2009 at 11:02 AM, Stuart Sierra
<[email protected]>wrote:

>
> On Feb 5, 9:59 am, Frantisek Sodomka <[email protected]> wrote:
> > PS: I still wonder why REPL has that "(" char after exception. Bug?
>
> It's the lazy sequence thing again.  The REPL starts printing the
> sequence, beginning with the "(", before the exception gets thrown.
> Here's a more obvious example:
>
> user=> (map #(/ 10 %) [1 2 0 5])
> java.lang.ArithmeticException: Divide by zero
> (10 5 user=>
>
>
> -Stuart Sierra
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to