cljs-dev 2024-10-14

In reaction to clojure 1.12, I guess something like this would be pretty neat:

(map .-value [#js {:value 1}])
but since .-value isn't fully qualified, it wouldn't be exactly according to 1.12's example. Still, perhaps worth considering? Perhaps would cause trouble with extern inference?

A compliant version, at least in terms of reading: js/.-value.

I think people are still generally confused about .- which requires understanding advanced compilation - so I am not sure about the utility of this one.

.-value is already readable

perhaps (map ^js .-value [#js {:value 1}]) would be necessary for inference

Yes, but: > Symbols beginning or ending with '.' are reserved by Clojure. Although I don't know whether that means simple or fully qualified names.

Well, given that simple names starting with dots can now be used by users of Clojure 1.12, I guess it's about FQNs..?

Or maybe that's exactly what "reserved" meant.

I interpret that as reserved for the language implementor ;)

👍 2