On Tuesday, February 17, 2015 at 1:39:02 AM UTC-6, Ivan L wrote:
> Let's say I have a namespace in clj mylib.macros.
> It has functions as well as macros.
> Some macros are defined as calling other macros or functions.
>
> I want to use it in cljs mylib.views.
>
> How do I define the macro namesp
On Tue, Feb 17, 2015 at 12:51 PM, Roberto Oliveros
wrote:
>
> (ns your-users.namespace
> (:require [mylib.core :include-macros true])) ;; if they want to include
> all
> ;; macros
>
This bit is no longer necessary in 0.0-2850 if the library ns re
Thanks everyone, so I'm requiring the individual macros now in the macro
definition namespace itself and I can import them fine using only :as. Great!
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subs
On Wednesday, 18 February 2015 04:13:08 UTC+10, David Nolen wrote:
> On Tue, Feb 17, 2015 at 12:51 PM, Roberto Oliveros wrote:
>
> (ns your-users.namespace
>
> (:require [mylib.core :include-macros true])) ;; if they want to include
> all macros
>
> This bit is no longer necessary in 0.0-28
I use cljx so they start out in common cljx file so its simply the same
namespace.
--
Note that posts from new members are moderated - please be patient with your
first post.
---
You received this message because you are subscribed to the Google Groups
"ClojureScript" group.
To unsubscribe fr
On Wednesday, 18 February 2015 04:13:08 UTC+10, David Nolen wrote:
> On Tue, Feb 17, 2015 at 12:51 PM, Roberto Oliveros wrote:
>
>
>
>
>
> (ns your-users.namespace
>
> (:require [mylib.core :include-macros true])) ;; if they want to include all
>
>
If you change it to
;; In src/cljs/fancy/fancy.cljs:
(ns fancy.fancy
(:require-macros [fancy.fancy :as m])
;; In src/cljs/fancy/core.cljs:
(ns fancy.core
(:require
[fancy.fancy :as fancy]))
(fancy/fun 123) should then always equal the macro version (unless you use
apply). The name
Thanks Thomas.
On Thursday, 26 February 2015 19:57:39 UTC+10, Thomas Heller wrote:
> If you change it to
>
> ;; In src/cljs/fancy/fancy.cljs:
> (ns fancy.fancy
> (:require-macros [fancy.fancy :as m])
>
> ;; In src/cljs/fancy/core.cljs:
> (ns fancy.core
> (:require
> [fancy.fancy :a
Hi Thomas,
These changes work. However, if in fancy.core I try to :refer to the function
I am interested in, the behaviour reverts always using the runtime. That is,
if I change the ns in fancy.core to:
(ns fancy.core
(:require
;;[fancy.fancy :as fancy]
[fancy.fancy :refer [fun]]
You are going to need to talk to David Nolen about that. He decided that this
should be handled in a separate issue than [1].
The implementation in shadow-build [2] (and my original patch) properly support
:refer but I currently do not have the time to create a revised issue/patch for
CLJS core
10 matches
Mail list logo