Fork me on GitHub
#scittle
<
2022-09-01
>
jurjanpaul06:09:59

I'm really happy that the improved error message support (by means of exposing sci/stacktrace and sci/format-stacktrace) makes a huge difference with respect to error reporting in the Scittle powered ClojureScript playground at https://jurjanpaul.github.io/ape-cljs-playground/ ! Very much appreciating @borkdude's help with that!

🎉 1
borkdude11:09:31

@jurjanpaul502 Nice work. I've been considering making evaluation async, so you can write:

(require '[reagent.core])
and it would lazy load the reagent file from the CDN. And this would also allow you to do the load-from-url thing, but baked in and it would not have the async problem you have now, since the next expression would be evaluated as a chained promise

borkdude11:09:09

It would be a breaking change though, since people who rely on scittle.core.eval_string being synchronous now, would then have a promise instead

👍 1
jurjanpaul15:09:53

Sounds like a very good idea to me! (I wouldn't mind adapting my code at all, but it would seemingly impact one or more other projects as well.)