Hi,
I want to attach reader metadata to a var, in a similar fashion to the :tag
key.
(^{:a :b} float? 1)
My use case is manual instantiation of type arguments to polymorphic
functions. I need the compiler
to add a metadata map to the results of analysis. In the absence of reader
macros, this see
I know one of my plugins lein-groovyc broke due to automatic expansion from
relative to absolute paths in properties ending with paths. Not a big deal i
figured i would just change the property name and document as breaking change.
What might be useful is a standard way to better label what ve
On Tue, Apr 17, 2012 at 9:16 PM, Dmitri wrote:
> (map? foo bar baz) would return bar if foo is a map and baz otherwise.
To elaborate on Alan's response, consider:
(if (map? foo) (/ bar 0) baz)
If map? were 'merely' a variadic function, (map? foo (/ bar 0) baz)
would fail because (/ bar 0) would
Hello folks.
As you may know, Leiningen 2 introduces some breaking changes that
affect plugins. I've already investigated most of the commonly-used
Leiningen plugins and helped fix many of them, but I haven't tried
them all. If you have a plugin of your own, it would be very helpful
if you could t
IMO this is fairly absurd for a language default, but you can easily
do this yourself in a number of ways. For example:
(defmacro define-preds [& preds]
(cons `do
(for [pred preds]
`(defmacro ~(symbol (str pred "+")) ~'[obj then else]
(list '~'if (list '~pred ~'obj
Often times I find myself writing code like the following
(if (map? foo) bar baz)
would it make sense to make test functions variadic, so if only passed
a single argument it would return true/false, but could also act as an
if when passed 3 arguments, eg:
(map? foo bar baz) would return bar if f
Hi,
I am also getting this error on Windows.
I think I have tracked down the source of the problem in lein-newnew.
c.j.io/resource expects a path separated by "/", and (.getPath file)returns a
path separated by the system dependent separator (i.e.
"leiningen\\new\\default\\project.clj").
I hav
Hi Neale,
I think refs #1 is fine as it stands. That said, perhaps this clarification
will help: "Start" means "as of current try", not "as of first try". If the
transaction has no way to see new things on retry, then the retry cannot
possibly succeed where the initial try failed.
Stu
> Hi,
>
Just wondering has anyone seen this build error from ClojureCLR (The
"Clojure.Compile" Project):
Error 3 The command ""C:\Users\Robert\bob-dev\bob-src\clojureCLR-
Builds\clojure-clojure-clr-nodlr-vs11\bin\4.0\Debug
\Clojure.Compile.exe" clojure.c
Hi all,
(my first post, let's hope it shows up soon)
On Tuesday, April 17, 2012 7:35:52 AM UTC+1, sw1nn wrote:
>
> Hi,
>
> We're all agreed that the behaviour I'm seeing is because the READ
> transaction is re-starting. It sounds like the community thinks that's the
> right behaviour and I'm ha
The # appears when *print-level* is exceeded
in pr/pr-str, just as you get "..." when *print-lengtht*
is exceeded:
(pr-str {:foo {:bar {:baz 3}}})
=> "{:foo {:bar {:baz 3}}}"
(set! *print-level* 2)
=> 2
(pr-str {:foo {:bar {:baz 3}}})
=> "{:foo {:bar #}}"
Could it be that a preceding test sets
Light Table is now on KickStarter ...
http://www.kickstarter.com/projects/306316578/light-table
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderat
We are pleased to announce the release of Clojure 1.4:
http://clojure.org/downloads
For maven/leiningen users, your settings are now:
:dependencies [[org.clojure/clojure "1.4.0"]]
This release includes significant features and bug fixes, documented
here:
https://github.com/clojure/clojur
OK, I dug into the Clojure source and found a way to solve my issue.
If I wrap the pr-str in (binding [*print-dup* true] (pr-str form)) it
works.
On Apr 17, 5:34 pm, nathanmarz wrote:
> So I've been hacking for the past day on making serializable functions
> for Clojure (building off the work of
So I've been hacking for the past day on making serializable functions
for Clojure (building off the work of @technomancy in his serializable-
fn repo).
I'm running into a nasty problem though, and I really don't understand
what's going on. One of the things I'm doing in my code (
https://github.c
1. It seems build.clojure.org now uses Java 6 so clojure.data.xml is
available for use (vs February 20 2012 -- correct me if I'm wrong)
2. Using clojure.zip I'm able to make my desired edits. Then I call
zip/root and I have my result. I'm not sure what the next steps are to get
It's a conspiration :)
The announce has been posted here recently. It may take a couple of days to get
the web site updated.
Luc
> Hi all,
>
> I've just realised that Clojure 1.4.0 appeared on maven.org two days ago and
> am
> confused as I have not seen any release announcement here or on
>
On Tue, Apr 17, 2012 at 10:09 AM, Tim Visher wrote:
> I saw quite a few announcements but they were all on twitter. Not sure
> what it appears that it wasn't announced on the list.
According to a colleague of mine, it was also announced on Facebook.
My guess is it's been announced here, but Gigg
I saw quite a few announcements but they were all on twitter. Not sure
what it appears that it wasn't announced on the list.
On Tue, Apr 17, 2012 at 9:45 AM, Wolodja Wentland wrote:
> On Tue, Apr 17, 2012 at 18:14 +0530, Ravindra Jaju wrote:
>> All are supposed to implement their own readers whic
On Tue, Apr 17, 2012 at 18:14 +0530, Ravindra Jaju wrote:
> All are supposed to implement their own readers which can read this event from
> the repository's tags.
Haha! But in earnest:
clojure-1.4.0 tag:
https://github.com/clojure/clojure/commit/0ba3ff1a059625704500445c2d8553811301520b
Oops , thanks for pointing it out. Sorry Cedric, gotta learn to read more
closely.
On Monday, April 16, 2012 10:22:50 PM UTC-7, Ambrose Bonnaire-Sergeant
wrote:
>
> Compare the number of brackets in Cedric's example to yours.
>
> Ambrose
>
>
>
>>
>> On Monday, April 16, 2012 10:02:48 AM UTC-7, C
Yes.
All are supposed to implement their own readers which can read this event
from the repository's tags.
Seriously, I've been looking at clojure.org for announcement - but nothing,
even though I am using 1.4.0 in my pet project(s) and brew too updated my
version!
On Tue, Apr 17, 2012 at 4:40 P
Hi all,
I've just realised that Clojure 1.4.0 appeared on maven.org two days ago and am
confused as I have not seen any release announcement here or on
http://www.clojure.org.
Can somebody shed some light on this?
--
Wolodja
4096R/CAF14EFC
081C B7CD FF04 2BA9 94EA 36B2 8B7F 7D30 CAF1 4EFC
s
23 matches
Mail list logo