sci

yuhan 2023-05-11T05:51:37.708159Z

Is it possible to use format in SCI in a cljs environment? By forwarding to eg. cljs.core/format? I understand the Java / JS syntax may be a little different but simple ones like %s / %d should be compatible.

yuhan 2023-05-11T06:04:23.830379Z

Intended use case: trying to write a simple render-fn in Clerk involving aligned/zero-padded numbers, to find out I can't call (format "%03d" num)

borkdude 2023-05-11T06:55:43.789689Z

This is a #clerk question I think

borkdude 2023-05-11T06:57:11.037719Z

You can expose all you want in SCI, eg goog.string/format but this is done by whoever configures SCI

yuhan 2023-05-11T07:37:43.374809Z

I figured as much, but as for the default configuration this is considered out of scope?

borkdude 2023-05-11T07:59:56.711059Z

it's not in the default config because it would take up more produced JS size, so it's opt in

👌 1