Before 1.8, clojure would accept wrong forms like (throw my-exception 1 2 3).
This is now an exception http://dev.clojure.org/jira/browse/CLJ-1456.
> On 8 Dec 2015, at 13:05, Noam Ben-Ari wrote:
>
> Hi,
> I have just tried 1.8.0-RC3 and saw a problem.
>
> I have a project in which I run tests
Hi,
I have just tried 1.8.0-RC3 and saw a problem.
I have a project in which I run tests with `lein midje`, and this runs fine
with 1.7.0.
When I change the clojure dependency to 1.8.0-RC3 and run it I get this
exception:
---
Exception in thread "main" java.lang.RuntimeException: Too many arg
Hi folks,
Doing a little meta-programming. I need a way to determine if an argument
passed to a function is a lambda, i.e. created by #() or (fn...).
Alternatively, I need a way to get at the metadata of a function's
associated var, given only the function.
The only method I've come up with so f
Thanks for the prompt response, I have filed a ticket to the library author:
https://github.com/cdorrat/reduce-fsm/issues/9
On Tuesday, December 8, 2015 at 3:07:34 PM UTC+2, Nicola Mometto wrote:
>
> Before 1.8, clojure would accept wrong forms like (throw my-exception 1 2
> 3).
>
> This is now
Hi!
Sorry, this is not an answer, but a question: Why you need to know if an
argument is a lambda? What is your use case?
Angel "Java" Lopez
@ajlopez
On Tue, Dec 8, 2015 at 10:08 AM, Gregg Reynolds wrote:
> Hi folks,
>
> Doing a little meta-programming. I need a way to determine if an argumen
I'm probably making a dumb mistake but I've been unable to import the
necessary classes to do transactions in H2 (MVMap interface).
I receive the following error at the repl:
---
user=> (in-ns 'asdf.core)
#object[clojure.lang.Namespace 0x46d3c2c8
You probably want TransactionStore$Transaction - that's how the jvm refers
to inner classes.
On Tuesday, December 8, 2015 at 9:06:08 AM UTC-6, Ryan Waters wrote:
>
> I'm probably making a dumb mistake but I've been unable to import the
> necessary classes to do transactions in H2 (MVMap interfac
That works! I guess I haven't had to import an inner class before.
Thanks.
On Tue, Dec 8, 2015 at 9:09 AM, Alex Miller wrote:
> You probably want TransactionStore$Transaction - that's how the jvm refers
> to inner classes.
>
>
> On Tuesday, December 8, 2015 at 9:06:08 AM UTC-6, Ryan Waters wro
On Tue, Dec 8, 2015 at 7:16 AM, Angel Java Lopez
wrote:
> Hi!
>
> Sorry, this is not an answer, but a question: Why you need to know if an
> argument is a lambda? What is your use case?
>
A simple use case (somewhat different from my actual case, but clearer)
would be dynamic function dispatch.
Hi all,
I'm trying to merge all "META-INF/cxf/bus-extensions.txt" files in
different jars during uberjar command with the following setting:
:uberjar-merge-with {"META-INF/cxf/bus-extensions.txt" [slurp str spit]}
However, result is not a merged copy. What am I doing wrong any ideas?
Regards,
The "correct" way to do this is:
(defn function-form? [x]
(let [x' (macroexpand x)]
(and (sequential? x') (= 'fn* (first x')
However, the approach you're describing won't work with let-bound
variables, only inline function definitions and vars, which means that your
macro is a limited
Cleaning the project did the job.
On Tue, Dec 8, 2015 at 6:15 PM Timur wrote:
> Hi all,
>
> I'm trying to merge all "META-INF/cxf/bus-extensions.txt" files in
> different jars during uberjar command with the following setting:
>
> :uberjar-merge-with {"META-INF/cxf/bus-extensions.txt" [slurp str
In designing our (by now) two clojure-based REST services we are struggling
with managing flow-control.
(Disclaimer: earlier backgrounds are with Python, C, Javascript and once
upon a time Java/C# etc)
What we'd like is to accomplish a series of steps which we feel are
universal to REST-servic
After upgrading to [reduce-fsm "0.1.4"] all my tests pass with RC3 :-)
On Tuesday, December 8, 2015 at 3:14:21 PM UTC+2, Noam Ben-Ari wrote:
>
> Thanks for the prompt response, I have filed a ticket to the library
> author:
>
> https://github.com/cdorrat/reduce-fsm/issues/9
>
> On Tuesday, Decemb
I can't really figure out what the deal is with predicates. They're not
mentioned in the Basic/Advanced usage wiki pages at all. The code for
Guards and Predicates is basically identical.
The only difference that I've been able to find (beyond the spelling,
obviously):
- predicates can only
Hi Ditlev
I'm answering a question you're not quite asking, but have you tried
looking at http://clojure-liberator.github.io/liberator/? It is built
around the kind of flow control you're trying to apply to HTTP requests,
but is much richer and designed to follow RFC2616.
With respect to your que
Will the following be possible with Clojure 1.8's socket REPL?
When a user reports an error we
1. connect securely and debug the issue on the user's running instance
2. redefine one or more things inside that instance to fix the bug
3. tell the instance to persist a new jar of bytec
Hi all,
If anyone intends to pack all dependencies of a JAX-WS service with lein
uberjar. The trick is to append bus-extensions.txt from different
dependencies.
You can achieve this with:
:uberjar-merge-with {"META-INF/cxf/bus-extensions.txt" [slurp #(str %1 "\n"
%2) spit]}
Don't forget "\n
In short, no. :)
In long, maybe in some limited way if you write some code. There are really two
pieces - the socket server and the socket repl. The socket server just runs
whatever accept function you tell it when a client connects on the socket.
There is no transport level security built into
I’ve been working with it for a few days and have seen no issues yet.
On Wednesday, December 2, 2015 at 10:03:31 AM UTC-6, Alex Miller wrote:
>
> Clojure 1.8.0-RC3 is now available. *This build is a "release candidate"!* We
> would appreciate any and all testing you can do on your own libraries o
core.match will attempt to optimize matching :when clauses in the decision
tree.
David
On Tue, Dec 8, 2015 at 4:18 PM, retnuH wrote:
> I can't really figure out what the deal is with predicates. They're not
> mentioned in the Basic/Advanced usage wiki pages at all. The code for
> Guards and P
21 matches
Mail list logo