Would it be ok to add goog.string/format to Scittle (https://github.com/babashka/scittle/blob/main/src/scittle/core.cljs#L49)?
I can make issue + PR
sure
check how nbb does it
ok cool, will do
hmm, spoke too soon, I thought I added it to nbb
think you did? https://github.com/babashka/nbb/blob/4c91df6fef5cee034e31ebbf6529223ba3f0f3e8/src/nbb/impl/gstring.cljs#L3
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
ah ok, got it
Ok done. I tested it manually locally
oh wait, only for compile errors. Need to test functionality properly
ok all good
@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 isOrdering always matters in reader conditionals so it's a feature
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 :)