You cannot post messages because only members can post, and you are not currently a member.
Description:
Discussion of the Clojure programming language
|
|
|
Annotations on the new deftype?
|
| |
With all the newly added/being worked on defprotocol/deftype features
- I've not seen anyone mention JDK annotations being part of things,
is support for annotations being worked on as part of this? Would be
a -very- handy addition, esp. as more and more JVM libraries/tools are
looking for them.... more »
|
|
roll call of production use?
|
| |
hi,
i'd be interested to hear who has successfully used clojure in
production. i know of some, as some folks have been vocal; any other
interesting-but-so-far-silent uses people'd be willing to fess up
about?
many thanks.
|
|
The specificity of bound-fn: capturing specific dynamic vars
|
| |
Meikel and All,
On the general topic of the recent posts on the "Clojure Scoping Rules"
thread:
bound-fn is very nice, but I've found that capturing *all* dynamic vars is
often overkill.
In fact, I would argue (subject to persuasion otherwise) that capturing all
dynamic vars should be the very rare exception rather than the rule. In most... more »
|
|
Feedback for a visitor closure generator
|
| |
Multimethods are a great abstraction in Clojure. They are great for
adapting a wide variety of inputs to a function. However, I often
need to decouple the adaptation of data from the function that
operates on the adapted data. Also, after the work is complete, I
need to adapt the data back to the original format.... more »
|
|
PersistentStructMap Exception
|
| |
Hi,
I'm getting a cast exception on trying to create a simple structure
and wondered if there was something obvious that I'm not doing. The
transcript below shows my version of java. Running on Mac Book Pro,
Snow Leopard 5.6.1
bash-3.2$ java -version
java version "1.6.0_15"
Java(TM) SE Runtime Environment (build 1.6.0_15-b03-219)... more »
|
|
making rlwrap Clojure friendly
|
| |
Hi,
has anybody tried to make rlwrap lexer more Clojure friendly? Just
adding "-" to the "word characters" would be a big gain (to enjoy
auto-completion.)
I spent some time looking through rlwrap sources but has not find a
good place to do the changes.
Regards, Sergey.
|
|
Mysterious errors w/ protocols and types
|
| |
The following code contains an error, and I cannot figure out what it
is at all. When I run StateMeta's test once, the statement marked with
a comment above fails. When I run it again, it succeeds. This has been
causing very weird bugs in my code. I've replicated the behavior in
both a script and the REPL. Here's the bugged code:... more »
|
|
AOT'd namespaces lose their metadata
|
| |
I noticed an odd bug when working on the help command for leiningen. It
uses docstrings on metadata for help output, but when AOTing the
project, the docstrings (as well as all other metadata) would be
lost. Note that this doesn't happen when metadata is added to the
namespace after the fact as is the case with clojure.core and... more »
|
|
|