Very cool. Thanks for the update.
David
On Feb 8, 2013, at 3:25 PM, Jordan Berg wrote:
> Just got a chance to test it from clojurescript and seems to work (only
> tested the examples from the docstring). Guess that is the nice part of
> macros working from clojure.
>
> Cheers
>
>
> 2013/2
Just got a chance to test it from clojurescript and seems to work (only
tested the examples from the docstring). Guess that is the nice part of
macros working from clojure.
Cheers
2013/2/8 Jordan Berg
> That is pretty cool, hadn't seen that before.
>
>
> 2013/2/8 David Sargeant
>
>> The func
That is pretty cool, hadn't seen that before.
2013/2/8 David Sargeant
> The functionality is currently in core.incubator (
> https://github.com/clojure/core.incubator) as the << macro. One can
> always use that, I suppose (haven't tried with ClojureScript myself).
>
> On Feb 8, 2013, at 1:56 P
The functionality is currently in core.incubator
(https://github.com/clojure/core.incubator) as the << macro. One can always
use that, I suppose (haven't tried with ClojureScript myself).
On Feb 8, 2013, at 1:56 PM, Jordan Berg wrote:
> js* is used internally in cljs to implement some operato
js* is used internally in cljs to implement some operators and the
interpolation helps there. I don't think js* is really meant to be used
too much outside of core. Any reason to not just use str?
(def x "david")
(str "hello " x)
2013/2/8
> Why does ClojureScript support string interpolatio
Why does ClojureScript support string interpolation for js* and not regular
clojurescript strings? Interpolation would be very useful.
(def x "hi")
(js* "alert(~{x});") => "hi"
(js/alert "~{x}") => "~{x}"
--
--
You received this message because you are subscribed to the Google
Groups "Clojur