Re: [?] How to enumerate the ClojureScript macros in ClojureScript REPL such as figwheel REPL?

2018-04-08 Thread Philos Kim
I found the way, so I want to share the tip with others here ( https://gist.github.com/philoskim/1d61574f69902c102d1a3c5c9112c6ba ). 2018년 4월 5일 목요일 오후 5시 23분 44초 UTC+9, Philos Kim 님의 말: > > I ran the follwoing code in the figwheel REPL and the result is an empty > list. > > How can I enumerate

[?] How to enumerate the ClojureScript macros in ClojureScript REPL such as figwheel REPL?

2018-04-05 Thread Philos Kim
I ran the follwoing code in the figwheel REPL and the result is an empty list. How can I enumerate the ClojureScript macros? dev:cljs.user=> (->> (ns-publics 'cljs.core) vals (filter #(get (meta %) :macro))) () Thanks in advance. -- You received thi

Re: Sharable custom reader macros in Clojurescript?

2014-12-03 Thread Gary Verhaegen
let the application decide. On Wednesday, 3 December 2014, Hoang Minh Thang wrote: > Hi all, how do I add custom reader macros in Clojurescript (like > data_readers.clj in Clojure)? I want to deliver them in libraries. > > -- > You received this message because you are subscribe

Sharable custom reader macros in Clojurescript?

2014-12-03 Thread Hoang Minh Thang
Hi all, how do I add custom reader macros in Clojurescript (like data_readers.clj in Clojure)? I want to deliver them in libraries. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroup

Re: Macros in ClojureScript

2013-04-11 Thread Colin Fleming
Hi Kevin, That message means that Clojure can't find the file containing your macros on the classpath. Looking at it, you appear to have the macro file in your src-cljs directory. I've never used ClojureScript, but maybe that should be in your src directory since it's Clojure and not ClojureScript

Re: Macros in ClojureScript

2013-04-11 Thread Kevin De Valck
I'm currently building a project in clojurescript where I need to create some macros. And I don't manage to get it to work. What I'm currently doing is comparable with what you did in core.logic for clojurescript: https://github.com/clojure/core.logic/tree/master/src/main/clojure/cljs/core/logic

Re: Macros in ClojureScript

2011-09-13 Thread David Nolen
You can reference macros defined in *clojure* files that are on your classpath like this: (ns my.namespace (:require-macros [my.macros :as my]) The ClojureScript compiler will use these macros to expand your ClojureScript source. Works great. David On Tue, Sep 13, 2011 at 6:31 PM, Timothy Ba

Re: Macros in ClojureScript

2011-09-13 Thread Laurent PETIT
Hi, 2011/9/14 Timothy Baldridge > While working with ClojureScript I came across a interesting question. > When compiling cljs files, how does Clojure handle macros? Normally > macros are run at compile-time, but in this case the compile-time > platform is completely different than the run time

Macros in ClojureScript

2011-09-13 Thread Timothy Baldridge
While working with ClojureScript I came across a interesting question. When compiling cljs files, how does Clojure handle macros? Normally macros are run at compile-time, but in this case the compile-time platform is completely different than the run time platform. My guess is that the compiler ass