Completed
Details
Assignee
David Nolen
David NolenReporter
Mike Fikes
Mike FikesLabels
Approval
Accepted
Patch
Code
Affects versions
Priority
Created August 9, 2017 at 9:45 PM
Updated August 10, 2017 at 12:27 PM
Resolved August 10, 2017 at 12:27 PM
The
str
macro unconditionally callsstr
on each of its arguments. This can be skipped for literal strings, saving on the unnecessary extra runtime call.For example:
(str "x" x "y")
would be compiled down to JavaScript with fewer calls["x",u.c(a),"y"].join("")
and silly things like
(str "a" "b")
compile all the way down to"ab"
.