It wouldn't matter which map is throwing the exception in this case. It's
an arity issue and maps accept 1 or 2 parameters.
https://github.com/clojure/clojure/blob/clojure-1.6.0/src/jvm/clojure/lang/APersistentMap.java
If this wasn't REPL, it would result in a larger stacktrace and sufficient
squ
Well, from the print of the exception, it looks unlikely, but let's look at
the code. This stacktrace says the exception was thrown in line 429 of
clojure.lang.AFn, and I'm going to assume you're using Clojure 1.6.0, so we
want
https://github.com/clojure/clojure/blob/clojure-1.6.0/src/jvm/cloju
Hi Everybody,
user=> ({:a 1})
ArityException Wrong number of args (0) passed to: PersistentArrayMap
clojure.lang.AFn.throwArity (AFn.java:429)
user=> *e
#
>From *e is it possible to infer that the object which threw it was {:a 1}?
Thanks,
Sunil.
--
You received this message because you are s
Not sure if it's the same issue, but there's an existing issue in Friend's
repo about dependency conflicts
(https://github.com/cemerick/friend/issues/116).
On Wednesday, November 5, 2014 7:21:06 PM UTC+8, Christian Egli wrote:
>
> Hi all
>
> I have a strange interaction between clj-http and com
You are right about the factory methods for Records. My need to reference the
records in another namespace was for type hinting.
> On Nov 5, 2014, at 6:12 PM, Gary Trakhman wrote:
>
> You don't need to import the record if you use the auto-gen'd factories,
> ->RecordName and map->RecordName.
Hi Laurent,
The boot-cljs-example has started to move ahead of the blog post, and
includes an optional 'serve' task.
There was a bug in the boot-cljs task that was deleting index.html
erroneously; I pushed a new version and updated boot-cljs-example.
If you `boot -u` to update boot (which was a
You don't need to import the record if you use the auto-gen'd factories,
->RecordName and map->RecordName. You can and also shouldn't import the
java interfaces created by protocols.
It's possible to interactively develop this way, but you really have to
know what's being eval'd and what types ar
My experience with protocols is that the implementations can't be
redefined, e.g changing an implementation. So if you change one of the
applied protocols, you may need to restart your REPL. YMMV.
Using records outside of their declared namespace is also really weird.
You need to both require
You can use fixtures from Clojure.test, but each spec from the perspective of
clojure.test includes multiple runs. So I use fixtures :once to do any global
setup, and then farm out to a setup function for anything that needs to be done
before each test run.
--Ashton
Sent from my iPhone
> On
Hi,
Is there a way to use clojure.test.check's defspec with fixtures?
Like (use-fixtures :each (partial wrap-setup setup teardown)) in clojures
test library?
How do other people execute setup and teardowns with clojure.test.check?
Best Regards,
Sven
--
You received this message because you ar
Hi, Christian
Did you try the issue list on GitHub?
https://github.com/cemerick/friend/issues
Regards
Plínio Balduino
On Wed, Nov 5, 2014 at 8:20 AM, Christian Egli
wrote:
> Hi all
>
> I have a strange interaction between clj-http and com.cemerick/friend. I
> don't know if this is a problem
Christian:
Try running 'lein deps :tree >& deps.txt' in each of those projects, and
diff them. I can't explain why the differences are there that exist, but
there are significant differences, including in version numbers of some of
the dependencies brought in.
Asking on the Leiningen email list
Alternatively, if I follow instructions from
https://github.com/adzerk/boot-cljs-example ,
then there's no mention of target/index.html, so I directly jump to
http://localhost:3000/ but I get an HTTP 404, so same problem there I think.
command is different than from the blog post:
$ boot serve -
Thanks Micha for the detailed explanation !
I started following the cljs example, but am stuck right after having
launched the first boot command: I don't see file target/index.html
The command and output look like this (launched from the boot-cljs-example
folder):
$ boot watch speak cljs-repl c
On Tue, Nov 4, 2014 at 7:22 PM, Fluid Dynamics wrote:
> On Tuesday, November 4, 2014 9:54:39 PM UTC-5, Atamert Ölçgen wrote:
>>
>> clojure-lanterna is pretty cool.
>>
>> https://github.com/sjl/clojure-lanterna
>>
>> I'm interested in hearing about alternatives as well.
>>
>
> Terminal emulation?
OK, I was using Lanterna as well, based on Steve Losh's "Caves of Clojure"
series.
On Tue, Nov 4, 2014 at 6:53 PM, Atamert Ölçgen wrote:
> clojure-lanterna is pretty cool.
>
> https://github.com/sjl/clojure-lanterna
>
> I'm interested in hearing about alternatives as well.
>
>
> On Wed, Nov 5, 2
You can take a look at https://github.com/ngrunwald/ring-middleware-format
which tries to handle content negociation only in a sane and flexible way
for REST api.
On Wednesday, November 5, 2014 2:47:02 PM UTC+1, Miguel Ping wrote:
>
> Hi all,
>
> What's the best way to do content-negotiation on
Liberator is very helpful for this:
http://clojure-liberator.github.io/liberator/
2014-11-05 14:47 GMT+01:00 Miguel Ping :
> Hi all,
>
> What's the best way to do content-negotiation on compojure-based web
> frameworks? I know liberator deals with it in a special way, I was
> wondering if is ther
Hi all,
What's the best way to do content-negotiation on compojure-based web
frameworks? I know liberator deals with it in a special way, I was
wondering if is there anything out there to deal with it like rails does.
Right now I have a big cond:
(defn handle-home [req]
(let [content-type (->
Forgot to add that my usual recommendation is Clojure in Action followed
by The Joy of Clojure. Killer combo.
On Wed, Nov 5, 2014 at 7:34 AM, Mark Nutter wrote:
> A bit off the original topic, but this seemed like a good place to give a
> shout out to my favorite intro book: Clojure In Action
A bit off the original topic, but this seemed like a good place to give a
shout out to my favorite intro book: Clojure In Action (
http://www.manning.com/rathore/). There are a lot of really excellent intro
books out there, and I don't want to disparage any of them, but I found
this one very readab
You may find that wrapping a random number generator as a lazy sequence is
a useful approach - it is functional and works nicely in an idiomatic
clojure style where you can "take" as many random numbers as you need while
treating the whole sequence as an immutable value.
I have an (experimental
Hi all
I have a strange interaction between clj-http and com.cemerick/friend. I
don't know if this is a problem in either of the two packages or maybe
even Leiningen.
The problem is very easy to reproduce. Create a project with `lein new`,
add dependencies to clj-http and com.cemerick/friend, sta
Ah, okay. I thought it might be this.
Not that I don't trust you, though, but how do you know this? Is there a
good way of finding out what clojure has infered or not? tools.analyzer?
I'm thinking from a point of view of the developer trying to get his
type hints sorted.
Phil
Nicola Mometto wr
On Wednesday, 5 November 2014, Pierre Thibault
wrote:
> Ouch! I found this code hard to understand. I read to previous part of the
> book. I guess it is normal when you are new to Clojure?
>
Yes. It will become easier with experience. That piece of code looks very
explicit and readable to me, al
Hi Atamert, yes, that is also wrong usage that is not caught. I do want to
focus on the current change though.
So the thought behind this change is that the birth-thread check was
unnecessary or too strict from the beginning and people should just use
transients correctly, caveat implementor. N
On 05 Nov 2014, at 04:22, Fluid Dynamics wrote:
> Terminal emulation? In this day and age?
Yes. Many people write and play explicitly retro games :-)
hth
lvh
signature.asc
Description: Message signed with OpenPGP using GPGMail
27 matches
Mail list logo