default package use being
> nonexistent in the Java space. And, you may not care about Java interop now,
> but either (a) you might later, or (b) your users might, now. Finally,
> gen-class will simply not work (last I checked) from a single-segment
> namespace.
Best Regards,
Apple made some news during the Clojure Conj by announcing that Java support
from Apple was being deprecated. The good news today is that Oracle will
deliver future updates of Java on the Mac. I think it's safe to say that the
Mac remains a viable platform for Clojure development.
http://www.
On Jul 14, 2010, at 2:40 PM, Cam wrote:
> I definitely like this version a little better. If you change the else
> of the if to be just (list), it returns the empty list just as core/
> flatten does. Mind if I update the ticket with this patch?
It's all yours. Really, just a slight change from
I think it's worthwhile to have a faster flatten even if it doesn't
look as elegant as the current implementation. You could do a bit of
refactoring and save yourself a call to sequential? since the
recursive calls are guaranteed to have seqs (as a result of next).
Also, I'd prefer flatten to ret
I think you're missing a quote in your original macro.
You wrote:
(defmacro foo [& xs] `(map identity ~xs))
Try this in a REPL:
user=> (macroexpand-1 '(foo 1 2))
(clojure.core/map clojure.core/identity (1 2))
That shows you that it's going to try to evaluate the form (1 2). The
original complai
Many years of Emacs have trained me to expect evaluation of the form
before the cursor. For example, with | standing for the cursor
position:
--
(+ 3 4)|
(* 2 3)
--
I expect to evaluate (+ 3 4). Often I put my cursor right after an
expression just so I can execute it. Again, that's ho
First, thanks for your work. I appreciate it. Now some comments:
"Select top level s-expression" and "evaluate current selection or top-
level s-expression" should act on the sexp in front of the cursor,
especially if the cursor is at the end of an sexp. When I tried it, I
was getting the next
I'd call it with-auto-promotion.
--
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 moderated - please be patient with your
first post.
To unsubscribe fro
the cost. By the way, I
also want to know if a library is using auto-promotion so that I can
avoid it unless I really need it. And, yes, I think I'll know enough
about my domain to make that decision.
Steve Miner
--
You received this message because you are subscribed to the Googl
I'm just getting started with Clojure. I had a small issue trying to
build the clojure-contrib project. I'm on an old PPC Mac with only
Java 5. The javalog.clj file requires Java 6.
There's an easy fix for javalog.clj. GLOBAL_LOGGER_NAME is always
just "global", so you can use the literal val
(dosync (alter congrats conj (System/getProperty "user.name")))
--~--~-~--~~~---~--~~
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
To unsubscribe from this
101 - 111 of 111 matches
Mail list logo