Welcome! Please see the About page for a little more info on how this works.

0 votes
in ClojureScript by

In the {{str}} macro, type inference is being used to decide when to apply the single-arity {{str}} function in order to coerce arguments elements in the JavaScript array being joined. But, if you look at the single-arity {{str}} function, it is now implemented as an array join.

This raises the question as to whether such coercions can be skipped entirely, because each element in the array would have the same string conversion performed on it as would be done by calling the single-arity {{str}} function.

If we can do this, then the benefit would be much smaller, more efficient codegen.

3 Answers

0 votes
by

Comment made by: mfikes

CLJS-3904.patch passes CI and Canary (/)

0 votes
by

Comment made by: mfikes

CLJS-3094.patch added to Patch Tender (i)

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJS-3094 (reported by mfikes)
...