Let me translate:
Hi all,
I am reading lein-ring's source code, and I find that the many functions(defn)
uses the syntax quote(`), e.g.
> (defn load-namespaces
> [& syms]
> `(require
> ~@(for [s syms :when s]
> `'~(if-let [ns (namespace s)]
> (symbol ns)
> s
My intuition is that syntax q
fy it in ~/.lein/profiles.clj ?
--
Dave
On Thu, Feb 21, 2013 at 7:45 AM, Michael Klishin
wrote:
> 2013/2/21 James Xu
>> so it seems that lein2 does not use ~/.m2/settings.xml
>
> Correct. Specify them in project.clj.
> --
> MK
>
> http://github.com/mic
?
2013/2/21 James Xu
> Thanks! But it sounds odd to me that lein does not use ~/.m2/settings.xml, why
> this decision?
I wasn't the one who's made this decision but here's my understanding.
Leiningen 2 uses Aether for dependency management. Aether doesn't use
~/.m2/se
Thanks! But it sounds odd to me that lein does not use ~/.m2/settings.xml,
why this decision?
From: Michael Klishin
Reply-To:
Date: Thu, 21 Feb 2013 11:45:51 +0400
To:
Subject: Re: does lein2 use repositories defined in ~/.m2/settings.xml?
2013/2/21 James Xu
> so it seems that le
I have a lein project, if using lein2(lein2 deps), it gives me the
following errors:
james:alitoolkit(git:master)$ lein deps
Could not find metadata
com.alibaba.platform.shared:dubbo.rpc/maven-metadata.xml in local
(/home/james/.m2/repository)
Could not find metadata
com.alibaba.platform.share
you should import the fully-qualified class name(e.g.
com.mycompany.ClassA), rather than the file system directory name
发自我的 iPhone
在 2013-2-17,7:06,Jarod 写道:
Hi. This is a really basic question, as I'm new to Clojure and Java. I'm
trying to use a jar file for Stanford's NLP software that isn
e.g.
(ann test1 (All [x y] [x y -> x]))
where is the 'All' defined?
--
Github: https://github.com/xumingming
Blog:http://xumingming.sinaapp.com
Weibo: http://weibo.com/xumingmingt
--
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to th
gt;function-returning-errors return an error which is not the one you're
>looking for
>
> Mimmo
>
>
>On Jan 30, 2013, at 10:05 AM, James Xu
>wrote:
>
>> From the expansion we can see that if-let determine the result based on
>> the second param, in your
>From the expansion we can see that if-let determine the result based on
the second param, in your case: {:key2 "a string"}, not the local binding
you assumed(key1), and
I think it is reasonable, for example, if we have the following code:
(if-let [{key1 key2} {:key2 "a string"}]
true
false)
Don’t know the exact reason for your issue, but for your question:
"How can a
class be present at compile time but not at runtime?"
It IS possible, AFAIK there are two cases:
1) maven pom can specify a dependency's scope as *provided*, the
dependency will be available at compile time, but will no
(:Keyword map) is preferred, because keyword itself can never be nil, while
it's possible for map, you might be interested to have a look at:
https://github.com/bbatsov/clojure-style-guide
From: Jonathon McKitrick
Reply-To:
Date: Mon, 28 Jan 2013 18:00:01 -0800 (PST)
To:
Subject: Best prac
user=> (macroexpand-1 (are [ x y ] (= x y) ((fn[a] a) 1) 1))
true
user=> (macroexpand-1 '(are [ x y ] (= x y) ((fn[a] a) 1) 1))
(clojure.template/do-template [x y] (clojure.test/is (= x y)) ((fn [a] a)
1) 1)
The StackOverflowError may have something to do with the do-template func
On 13-1-28 下午1
https://github.com/nathanmarz/storm
发自我的 iPhone
在 2013-1-25,14:19,"李振" 写道:
Hi there,
I am quite a freshman on clojure.
Materials I've found are about the clojure syntax with no runable project
to have a glance.
Since I'm a .Net coder I prefer to use clojure-clr and need samples to have
a be
Thanks!
On Sunday, January 20, 2013 1:00:19 PM UTC+8, Phil Hagelberg wrote:
>
>
> Greetings fellow Clojure people.
>
> I've just pushed out the final release of Leiningen 2.0.0. The changes
> since the last release candidate have mostly been minor bugfixes.
> Highlights since 1.x include profil
ue, Jan 15, 2013 at 8:29 PM, James Xu
wrote:
> https://github.com/xumingming/tracer
>
> tracer
> trace clojure call stack.
> When I read some open source clojure source code, I find that some
> function/logic are so complex that it is not so easy to understand the whole
> logic, I
https://github.com/xumingming/tracer
tracer
trace clojure call stack.
When I read some open source clojure source code, I find that some
function/logic are so complex that it is not so easy to understand the
whole logic, I think it will help me a lot if I can see the real function
call stack
A JMX client with a file system style. You use ls to check all the mbeans,
use cd to go down one level, and use cat to check the attribute value of a
mbean's attribute.
In jmx-repl the following jmx bean:
java.lang:type=MemoryPool,name=CMS Old Gen
translates to the following path:
/java.lan
17 matches
Mail list logo