On Wednesday, August 3, 2016 at 6:00:43 AM UTC-5, Yehonathan Sharvit wrote:
>
> Mars0i, as I see it interactivity is the key for effective learning - both 
> for kids and adults.
>
> This is the whole point of Klipse - https://github.com/viebel/klipse.
>

Ah, very nice.  I know about Clojurescript browser repls, but doing it for 
the other languages is a Good Thing.

By the way, do you have any suggestion about how to make the errors less 
> daunting?
>

I've been using Clojure for a while, but only recently starting using 
Clojurescript.  Apparently, you can capture errors in Clojurescript in a 
similar way to the how it's done in Clojure.

http://stackoverflow.com/questions/12655503/how-to-catch-any-javascript-exception-in-clojurescript
https://github.com/clojure/clojurescript/wiki/Exception-Handling

For example:

(try 
  (5 2) 
  (catch js/Object e "That didn't work."))

This returns the string at the end of the catch expression in the 
Clojurescript repl on my computer.  It returns nil at a Klipse prompt in 
kids.klipse.tech, so I'm not sure what else you'll have to do.

-- 
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
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to