sci

devn 2022-05-06T21:40:24.873479Z

heya @borkdude i got a question for ya while re-running the full input set of expressions in getclojure:

(sci/eval-string "(with-out-str (.printStackTrace (Exception. \"fobbar\")))")
(sci/eval-string "(.printStackTrace (Exception. \"fobbar\"))")

devn 2022-05-06T21:41:46.044109Z

these manage to print, and i’m wondering if that’s expected despite a bound sci/*out*

borkdude 2022-05-06T21:43:29.274719Z

Those print via System/out or System/err probably and Exception is enabled by default in SCI

borkdude 2022-05-06T21:43:48.216619Z

That might be worth changing if it's a problem

devn 2022-05-06T21:44:50.884179Z

it’s not a problem, just the only thing to manage to print to my console out of 247,000 expressions

borkdude 2022-05-06T21:45:06.830639Z

Here are the by-default enabled classes: https://github.com/babashka/sci/blob/972f8d55f59102607908f1f1ab30e598bddaa67e/src/sci/impl/opts.cljc#L59

devn 2022-05-06T21:48:43.209819Z

i think it makes sense to leave it enabled personally

devn 2022-05-06T21:49:28.923279Z

i was just a bit surprised to see it is all and wanted to make sure that behavior was expected

👍 1
borkdude 2022-05-06T21:51:50.459449Z

Those classes are enabled because they are used by certain macros I believe