[ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-17 Thread Roberto Oliveros
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-17 Thread David Nolen
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-18 Thread Ivan L
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-22 Thread Peter West
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-23 Thread Ivan L
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-25 Thread Peter West
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 > >                                        

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-26 Thread Thomas Heller
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-26 Thread Peter West
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

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-02-28 Thread Peter West
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]]

Re: [ClojureScript] Re: What is the up to date summary of cljs macro definition/usage as of 2850?

2015-03-02 Thread Thomas Heller
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