Hi,
Am Sonntag, 26. Juni 2011 17:22:14 UTC+2 schrieb mlimotte:
user> (my-with-cl '[[foo "something about foo" nil]])
> ; Evaluation aborted.
> Exception: Unsupported binding form: something about foo
>
Leave out the ' in front of the vector. with-command-line quotes it for you.
Adding the quote
I want to explore clj-json lib . how to do load this library and starting
using its function
using repl.
If i have a project.clj in lein project and i have clj-json as one of
dependencies
, will this library loaded when i connect thru emacs slime connect . What
has to be done
so that i can
Yes, bit ashamed that I didn't know that..
Kind of surprised though that not many seem to use it, most clojurists(?)
seems to roll their own solution.
Thanks.
2011/6/27 Alan Malloy
> clojure.java.io?
>
> On Jun 26, 2:25 pm, Andreas Liljeqvist wrote:
> > Are there any libraries out there for m
(newbie reply)
1. adding the clj-json dependency to project.clj doesn't make the methods
automatically visible to the REPL or the code
2. we need to do one of the following:
1. (use '[cl-json.core]) , and use code by writing something like
(parse-string "blah")
2. (requ
If you want to play around with it in a REPL, you need to "require" or "use"
the namespace
you want, and then you will have access to the functions in that namespace.
There is an example of this on the project page (see Synopsis):
https://github.com/mmcgrana/clj-json
Ambrose
On Mon, Jun 27, 201
Hi Justin,
I just tried out your vagrant script, and it appears to be dying on an unmet
dependency:
[default] --2011-06-27 06:33:42--
https://github.com/downloads/icylisper/jark/jark-0.3
[default] 207.97.227.239
[default]
[default] connected.
[default] 404 Not Found
[default] 2011-06-27 06:33:44
Brett Morgan writes:
> I just tried out your vagrant script, and it appears to be dying on an
> unmet dependency:
>
> [default] --2011-06-27 06:33:42--
> https://github.com/downloads/icylisper/jark/jark-0.3
> [default] 207.97.227.239
> [default]
> [default] connected.
> [default] 404 Not Found
Thanks for your tips, Ken and Meikel.
Both of them were helpful, and helped me resolve my problem. First I tried:
user=> (defmacro my-with-cl [spec] `(with-command-line args "desc" ~spec
(prn foo)))
This almost works:
user=> (macroexpand-1 '(my-with-cl [[foo "something about foo" nil]
remainin
When I repeat : the number 3 [{:3 "father Andrew D" :3 "mother Lisa D"}] I
get an error, although I can repeat number 1 with no problem. Why?
(struct person
{:1 "english person"
[{:2 "Andrew D"
[{:3 "father Andrew D"
:3 "mother Lisa D"}]
:2 "Jus
On Mon, Jun 27, 2011 at 2:13 AM, Stephen C. Gilardi wrote:
> As Rich noted
> here: http://groups.google.com/group/clojure/msg/513367afb934d41b , when the
> var names a function and it's used in an expression emitted from a
> macro, prefer invoking the var:
> (#'some-ns/some-private-var some args)
Thanks Phil, I added a bit of context to the bug report and I am tracking
it.
brett
On Tue, Jun 28, 2011 at 12:46 AM, Phil Hagelberg wrote:
> Brett Morgan writes:
>
> > I just tried out your vagrant script, and it appears to be dying on an
> > unmet dependency:
> >
> > [default] --2011-06-27 0
On Mon, Jun 27, 2011 at 6:52 AM, Andreas Liljeqvist wrote:
> Yes, bit ashamed that I didn't know that..
>
> Kind of surprised though that not many seem to use it, most clojurists(?)
> seems to roll their own solution.
Probably because it's not in clojure.core, which means
a) it isn't found by se
At this point I'll just put in a plug for the Clojure Atlas: typing
stream into that yields several results that cover
clojure.java.io/input-stream etc.
On Mon, Jun 27, 2011 at 3:52 AM, Andreas Liljeqvist wrote:
> Yes, bit ashamed that I didn't know that..
>
> Kind of surprised though that not ma
I have tried to use amap but I was too difficult for me and I have tried the
map:
(def tree (com.vaadin.ui.Tree. "Planets"))
(map #(.addItem tree (.toString (first %))) planets)
But I get an error:
IllegalArgumentException Don't know how to create ISeq from:
clojure.lang.PersistentStructMap
:1 and :3 are keywords, not numbers.
map literals are specified in terms of key-value pairs; for example, in {a b
c d}, a and c are keys, b and d are values. In your person struct, :1 is
only used as a key once, which is why that works. This might help make
things clearer:
(struct person
Thanks for the report Praki. Definitely a bug; I created
http://dev.clojure.org/jira/browse/CLJ-817 with a patch. I expect a
fix will make it into the next beta.
Best,
Alan
Clojure/core
On Sat, Jun 25, 2011 at 1:25 PM, Praki wrote:
> This looks like an issue with hyphenated attribute names in
Something I just discovered and thought it might be of benefit here.
Since the main environment for clojure is currently emacs; clojure
box, swank etc; and emacs has a learning curve it may be useful to
reduce the emacs learning curve so that we can concentrate on learning
clojure.
Ergo Emacs http
On Jun 28, 1:47 pm, flebber wrote:
> Something I just discovered and thought it might be of benefit here.
> Since the main environment for clojure is currently emacs; clojure
> box, swank etc; and emacs has a learning curve it may be useful to
> reduce the emacs learning curve so that we can con
Hi,
Am Montag, 27. Juni 2011 23:50:52 UTC+2 schrieb Ken Wesson:
> a) it isn't found by searching the docs in many of the usual ways;
>
Is that really so hard? http://clojure.github.com/clojure top-right TOC:
"clojure.java.io" If I look for stream handling, wouldn't that sound
interesting?
Sadl
Hi, I'm currently working on my first real Clojure project, and I find
myself wanting a mocking tool. So I was wondering what you are using?
I tried googling, but I can't seem to find the "Mockito of the clojure
world". Searching for a mocking tool in Clojure it looks like there is
a lot of small t
20 matches
Mail list logo