What is meant by "breaking compatibility"? I haven't noticed any
issues using ^:dynamic with 1.2, am I missing something?
Thanks.
> --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clo...@googlegroups.com
> Note that posts from new members are moderated - please be patient with your first post.
> To unsubscribe from this group, send email to
> clojure+u...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
Good idea.
One thing that folks may not yet be aware of is that Clojure/core now
have matrix tests for all the new contrib libraries - across Clojure
1.2.0, 1.2.1 and 1.3.0-beta3 and various JVMs (Sun 1.5, Sun 1.6,
Oracle 1.7, IBM 5, OpenJDK 1.6).
e.g., http://build.clojure.org/job/java.jdbc-test-matrix/ (these were
all blue the previous time I looked so I think there's some "work in
progress" going on right now).
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/
Railo Technologies, Inc. -- http://www.getrailo.com/
"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)
Luc P.
--
Luc P.
================
The rabid Muppet
According to http://dev.clojure.org/display/design/Contrib+Library+Names
some of c.c.def went into clojure.core.incubator and c.c.trace has no
"future" home at present. Some namespaces will go away because what
was in them exists in another namespace (much as stuff moved from
c.c.string to clojure.string).
As an example, defnk (from c.c.def) has disappeared in the reorg
because map destructuring is built-in now.
I crossed another list in a different page stating the new names and structures but did not find
this one. I'll keep the bookmark.
So the only thing left on my list is c.c.trace. Any ideas of the future plans ?
Need a volunteer ? Is there a bigger plan to regroup dev utilities ?
Luc
On Sat, 3 Sep 2011 17:29:14 -0700
Sean Corfield <seanco...@gmail.com> wrote:
> On Sat, Sep 3, 2011 at 4:40 PM, Luc Prefontaine
> <lprefo...@softaddicts.ca> wrote:
> > Being curious I checked references to contrib in our code base.
> > Anyone knows what will happen to clojure.contrib.def and
> > clojure.contrib.trace ?
>
> According to
> http://dev.clojure.org/display/design/Contrib+Library+Names some of
> c.c.def went into clojure.core.incubator and c.c.trace has no
> "future" home at present. Some namespaces will go away because what
> was in them exists in another namespace (much as stuff moved from
> c.c.string to clojure.string).
>
> As an example, defnk (from c.c.def) has disappeared in the reorg
> because map destructuring is built-in now.
--
Stuart Sierra may chip in since he seems to have been the author of that?
It does look useful.
Personally I've found Slime's tracing to be a suitable replacement for
c.c.trace. It has the advantage that you don't need to modify the
source to add the tracing, though of course it only works in Emacs.
Just hit C-c C-t to toggle tracing for a given defn.
-Phil
We use Eclipse/CCW, not much choices here, we have a mixed language app and
as I age I have less memory space for different dev tools :)
I'll ask Stuart if he has any plans for this.
--
Am 03.09.2011 um 23:12 schrieb Alan Malloy:
> Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, and
> wouldn't compile at all in 1.2. But now I see that in 1.2 it's
> equivalent to ^{:tag :foo} - not useful, but not damaging either. I
> guess I'll start using ^:dynamic myself.
#^something was equivalent to #^{:tag something}. Back when we did types not with defrecord but with (with-meta {:foo :bar} {:tag ::my-type}) it actually was useful. With the advent of defrecord this need for this diminished. So, it at least was useful.
Sincerely
Meikel
It's probably also worth noting that metadata combines in 1.3.0:
(defn ^:foo ^:bar fubar [] )
In 1.2.1, this gives:
user=> (meta #'user/fubar)
{:ns #<Namespace user>, :name fubar, :file "NO_SOURCE_PATH", :line 7,
:arglists ([]), :tag :foo}
In 1.3.0, this gives:
user=> (meta #'user/fubar)
{:arglists ([]), :foo true, :bar true, :ns #<Namespace user>, :name
fubar, :line 1, :file "NO_SOURCE_PATH"}
Huh, interesting. I assumed ^:foo meta syntax was new to 1.3, andwouldn't compile at all in 1.2. But now I see that in 1.2 it's
equivalent to ^{:tag :foo} - not useful, but not damaging either. I
guess I'll start using ^:dynamic myself.
Sorry, trying to clarify, we're saying don't use ^:dynamic if you want
to be compatible with 1.2? Instead use the full form ^{:dynamic
true}?
Thanks.
Thanks.
Luc
--
Now that Leiningen has user-level plugins, there's no need to put
swank in project.clj since you don't want to force everyone who works
on your project to download it. Just install it once for your own
user. Basically :dev-dependencies should only contain things without
which the tests or other build steps will not function.
I'll try to make this more explicit in the documentation.
-Phil