CrossClj

0.9.0 docs

SourceDocs



RECENT
    VARS
    <!?
    alet
    aloop
    async-bindings
    cljs-env?
    if-cljs
    let!?

    « Index of all namespaces of this project

    macro
    (<!? value)
    If value is a channel (implements ReadPort protocol), take the value from it
    (<!), otherwise return as is. Works with nested channels, I wish there wasn't any.
    
    macro
    (alet bindings & exprs)
    Repace with (go (let!? ...)) in cljs and with let in clj.
    
    macro
    (aloop & expr)
    replace with go-loop in cljs and with loop in clj.
    
    (async-bindings bindings)
    (cljs-env? env)
    Take the &env from a macro, and tell whether we are expanding into cljs.
    
    macro
    (if-cljs then else)
    Return then if we are generating cljs code and else for Clojure code.
    https://groups.google.com/d/msg/clojurescript/iBY5HaQda4A/w1lAQi9_AwsJ
    macro
    (let!? bindings & exprs)
    In cljs, enclose every binded value in a (<!?) expression.