Is there an easy way to use clojure.test to test private functions of
one namespace from another namespace? I remember seeing here that
there is some sort of trickery one can do to see the private vars from
another namespace, but I don't know how easy that is, or how unsafe
it is in the context
http://groups.google.com/group/clojure/browse_thread/thread/3835e5405ab930f6/
On May 8, 11:20 pm, Mark Engelberg mark.engelb...@gmail.com wrote:
Is there an easy way to use clojure.test to test private functions of
one namespace from another namespace? I remember seeing here that
there is
Hello All,
I have heard of Clojure this , Clojure that, virtually every continent
(every country) is duly represented except Africa. I have not heard of
Clojure Africa, someone here is tell me to call it Clojure South Africa. Now
, I have decided to start off somethingClojure Africa. Come join
Maybe this could help:
http://richhickey.github.com/clojure-contrib/ns-utils-api.html#clojure.contrib.ns-utils/immigrate
HTH,
--
Laurent
2010/5/9 Mark Engelberg mark.engelb...@gmail.com:
I've seen people say here that it's relatively easy to break up a
namespace into smaller components, so
Hi nipra,
and which swank-clojure do you use on the emacs side? I guess not the
one from ELPA, right?
Cheers,
Benjamin
--
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
I'm using the following workaround for now:
- remove clojure-snapshots from the repositories secttion of the
pom.xml
- delete all jar's that are too new (guess sth. near the end of
april) from maven_repository/org/clojure/clojure/1.2.0-master-SNAPSHOT
- be happy
This works as without the
If you just need to break up your code into smaller files another technique
is:
; me/lib.clj
(ns me.lib)
(load me/foo)
(load me/bar)
; me/foo.clj
(in-ns 'me.lib)
; me/bar.clj
(in-ns 'me.lib)
On Sat, May 8, 2010 at 10:44 PM, Mark Engelberg mark.engelb...@gmail.comwrote:
I've seen people say
http://www.google.com/url?sa=Dq=http://richhickey.github.com/clojure-contrib/ns-utils-api.html%23clojure.contrib.ns-utils/immigrate
'immigrate' is bad, it creates new Vars instead of new mappings to
existing Vars, leading to very subtle and difficult-to-fix bugs.
-S
--
You received this
On Sun, May 9, 2010 at 8:01 AM, David Nolen dnolen.li...@gmail.com wrote:
If you just need to break up your code into smaller files another technique
is:
; me/lib.clj
(ns me.lib)
(load me/foo)
(load me/bar)
; me/foo.clj
(in-ns 'me.lib)
; me/bar.clj
(in-ns 'me.lib)
I think this
Unfortunately, this seems to break my consumer code. Although
mylibrary can see the functions from library1 and library2, consumers
of mylibrary cannot. So I end up manually having to go to all my
consumer files and changing them to:
(ns a-random-file-that-consumes-my-library
(:use
On 9 May 2010 19:02, Laurent PETIT laurent.pe...@gmail.com wrote:
2010/5/9 Stuart Sierra the.stuart.sie...@gmail.com:
http://www.google.com/url?sa=Dq=http://richhickey.github.com/clojure-contrib/ns-utils-api.html%23clojure.contrib.ns-utils/immigrate
'immigrate' is bad, it creates new Vars
The more I think about this, the more I feel like I don't have a good mental
model of what's going on with namespaces/loading/reading/compiling. What is
happening when you load a file without reading/compiling it (e.g.,
load-reader or load-file)? How does referring/using match up with those
Anyone know of a Clojure library (or wrapper) for posting HTTP
multipart/form-data?
Bill Smith
Austin, TX
--
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
If you're using ring (and you should be!) there's a middleware layer
that handles it
http://mmcgrana.github.com/ring/middleware.multipart-params-api.html
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
Anyone know of a Clojure library (or wrapper) for posting HTTP
multipart/form-data?
Do you mean submitting or receiving?
If you mean submitting, clj-apache-http will allow you to do it.
http://github.com/rnewman/clj-apache-http
Simply create any Apache HttpEntity and pass it as the value of
+1
On May 7, 2:13 am, Mibu mibu.cloj...@gmail.com wrote:
Am I the only one driven mad by the new auto-appended signature to
every message in this group (You received this message because you
are subscribed...)? It started on April 16th. Is there a way a
moderator can stop it?
--
You
Not wanting to become an uninvited guest to your party :-) ... but do
you mind elaborating .. ?
On May 9, 2:31 am, Base basselh...@gmail.com wrote:
I just replaced 443 lines of java with 61 lines of Clojure.
THANK YOU RICH !!!
--
You received this message because you are subscribed to the
Hi,
On 10 Mai, 00:15, Mark Engelberg mark.engelb...@gmail.com wrote:
The more I think about this, the more I feel like I don't have a good mental
model of what's going on with namespaces/loading/reading/compiling. What is
happening when you load a file without reading/compiling it (e.g.,
18 matches
Mail list logo