scittle 2025-07-09

I can make issue + PR

check how nbb does it

hmm, spoke too soon, I thought I added it to nbb

oh yes, there

I guess it's fine to just add it to scittle.core

I think it has a slightly different function signature as clojure.core/format, but I will check. But if so that would be confusing maybe?

I mean, to the configuration in scittle.core, I don't mean to add it to clojure.corre in scittle

Ok done. I tested it manually locally

oh wait, only for compile errors. Need to test functionality properly

@borkdude you were right about the (goog.string.format "%05d" 123) . In Cljs that also works. But I don't remember seeing that being used before. Also I don't know if Sci supports this kind of namespace invocation?

SCI does support namespace invocation, but let's just ignore it

Ok cool that Sci even supports it, but yeah think we can ignore it

I don't know if is a feature or a bug, but I just noticed that ordering in cljc constructs seems to matter When I do the following in Scittle:

#?(:scittle "scittle"
   :cljs "cljs") ;=> "scittle"
vs
#?(:cljs "cljs")
   :scittle "scittle")
    ;=> "cljs"
I guess I expected that :scittle would always be preferred instead. Not sure what the right behaviour is

Ordering always matters in reader conditionals so it's a feature

❤️ 1

Similar in bb

you can even do this:

#?(:cljs (if #?(:scittle false: cljs true) ...)

Ah I'm a reader conditional noob 😄 good to know thanks!

it's a common question :)

🙏 1