Re: return value of use, requires?

2010-02-06 Thread Timothy Pratley
On 2 February 2010 05:14, Raoul Duke wrote: > given keyword isn't one that is supported, > or no load target given Good point, I've updated the ticket patch to check options are valid also, so the behavior is now: user=> (use 'foo :foo :bar) java.lang.Exception: Unsupported option(s) supplied: :

Re: newbie question: splitting up source files

2010-02-06 Thread Michael Wood
On 6 February 2010 00:52, Mike Jarmy wrote: > OK, here's a slightly more elaborate toy example that works.  In this > example, foo-main.clj needs foo-a.clj, and they both need > foo-util.clj.  I was expecting the (in-ns) call in foo-a to have a > ":load" keyword, just like (ns) in foo-main, but it

Re: newbie question: splitting up source files

2010-02-06 Thread Michael Wood
P.S.: Instead of: (print (format "blah: %s\n" arg)) You could use: (printf "blah: %s\n" arg) or: (println "blah:" arg) If you want no space after the colon, you could use: (println (str "blah:" arg)) -- Michael Wood -- You received this message because you are subscribed to the Google

Dutch Clojure users

2010-02-06 Thread Joop Kiefte
Hello folks! I am from the Netherlands and I am learning Clojure now, using it at work, and loving it so far. Are there any more dutch Clojure programmers on this list so we can meet? I am also interested to know about Clojure-programmers from any country in a reasonable distance from Strasbourg.

Re: Dutch Clojure users

2010-02-06 Thread Meikel Brandmeyer
Hi, Am 06.02.2010 um 12:26 schrieb Joop Kiefte: > I am also interested to know about Clojure-programmers from any country in a > reasonable distance from Strasbourg. If you mean the Strasbourg in France: I live near Frankfurt am Main. It's a little more than 2h with the car. That could count a

Re: compiled namespaces referencing each other

2010-02-06 Thread Mike Jarmy
OK, thanks guys On Sat, Feb 6, 2010 at 12:04 AM, ataggart wrote: > Circular references mean your namespace design is broken. > > -- > 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

Re: Clojure for system administration

2010-02-06 Thread Jeff Schwab
Phil Hagelberg wrote: On Thu, Feb 4, 2010 at 8:33 AM, Stuart Sierra wrote: Clojure can certainly do these things; clojure-contrib contains many file and io-related utilities. But remember that Clojure, like any Java program, takes more time to start up than "scripting" languages like Perl/Bash

Re: Dutch Clojure users

2010-02-06 Thread Tommy
Hello. I am unfamiliar with maps. How do I add myself to this map? - Tommy On Feb 6, 12:48 pm, Meikel Brandmeyer wrote: > Hi, > > Am 06.02.2010 um 12:26 schrieb Joop Kiefte: > > > I am also interested to know about Clojure-programmers from any country in > > a reasonable distance from Strasbo

Re: Dutch Clojure users

2010-02-06 Thread Stephen C. Gilardi
On Feb 6, 2010, at 10:08 AM, Tommy wrote: > I am unfamiliar with maps. How do I add myself to this map? Figuring that out has taken me a long time on at least two occasions... The key is you need to be signed in to make changes. - At the upper right of the page is "sign in". Use that to sign

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Stuart Sierra
On Feb 5, 1:47 pm, Peter Schuller wrote: > One problem is that there needs to be a convention for a clojure > "binary" that works consistently across platforms. My extremely biased opinion: Clojure is not a scripting language. The "binary" is java. System-wide classpaths are a bad idea. -SS -

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Peter Schuller
> My extremely biased opinion:  Clojure is not a scripting language. One can spent a lot of time debating the definition of 'scripting language', but sure. The bigger issue though: > The "binary" is java.  System-wide classpaths are a bad idea. In theory I agree with you. The concept of site-loc

Re: Dutch Clojure users

2010-02-06 Thread Tommy
It works fine, thank you :) On 6 Feb., 16:26, "Stephen C. Gilardi" wrote: > On Feb 6, 2010, at 10:08 AM, Tommy wrote: > > > I am unfamiliar with maps. How do I add myself to this map? > > Figuring that out has taken me a long time on at least two occasions... > > The key is you need to be signed

Re: Run expression, with particular functions replaced

2010-02-06 Thread Daniel Werner
On Feb 4, 8:11 pm, Bryce wrote: > I take your point; I've given up trying to actually define a function > with the expression for the moment (I'd imagine it's still possible, > just much trickier than I thought).  My intention was to fake operator > overloading.  For my purposes it should be enoug

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Michał Marczyk
How about having a Clojure application 'package' set up a launcher script to launch the app with a minimal classpath, Leiningen style, based on some assumption regarding the whereabouts of versioned jars on the system? (E.g. jline-0.9.94.jar rather than jline.jar, say.) That seems to me to be pref

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Peter Schuller
> How about having a Clojure application 'package' set up a launcher > script to launch the app with a minimal classpath, Leiningen style, > based on some assumption regarding the whereabouts of versioned jars > on the system? (E.g. jline-0.9.94.jar rather than jline.jar, say.) Something along tho

Re: Dutch Clojure users

2010-02-06 Thread rb
On Feb 6, 12:26 pm, Joop Kiefte wrote: > Hello folks! > > I am from the Netherlands and I am learning Clojure now, using it at work, > and loving it so far. Are there any more dutch Clojure programmers on this > list so we can meet? I am also interested to know about Clojure-programmers > from any

Re: Dutch Clojure users

2010-02-06 Thread Hubert Iwaniuk
Hoi Joop, I live in NL. Cheers, Hubert. On Sat, Feb 6, 2010 at 12:26 PM, Joop Kiefte wrote: > Hello folks! > I am from the Netherlands and I am learning Clojure now, using it at work, > and loving it so far. Are there any more dutch Clojure programmers on this > list so we can meet? I am also i

Re: Applying arguments to Java methods.

2010-02-06 Thread Nicolas Buduroi
On Feb 5, 9:44 pm, nchubrich wrote: > Is there ever any reason to use memfn as opposed to ordinary > functions, i.e. > > (def div (fn [x y] (.divide x y))) You should normally use the doted notation. I used it while experimenting with a macro that wrap Java classes, but it isn't the right way to

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Constantine Vetoshev
On Feb 6, 1:06 pm, Peter Schuller wrote: > But the practical issue > remains that if I want to write some software that I want sysadmins in > various situations to want to use effortlessly (in my case, a backup > tool), problems like these do get in the way of choosing Clojure. > > Maybe uberjars

Re: Dutch Clojure users

2010-02-06 Thread Jeff Rose
There is a group of us hacking Clojure in Amsterdam and Utrecht. Where are you? Join the Amsterdam Clojurians Google group, and we'll meet for a pizza. -Jeff On Feb 6, 12:26 pm, Joop Kiefte wrote: > Hello folks! > > I am from the Netherlands and I am learning Clojure now, using it at work, > an

question about dotimes

2010-02-06 Thread Аркадий Рост
Hi! >>dotimes >>macro >>Usage: (dotimes bindings & body) This is from clojure api. But I don't know how to use dotimes with several bindings. I've tried to do it different ways, but I got error every time. So how to use dotimes with several bindings? -- You received this message because you are

Re: question about dotimes

2010-02-06 Thread Adrian Cuthbertson
In the doc for dotimes, the "bindings" are required as "name n" (see below). Hence (dotimes [i 5] ... ) is the only pattern. Check out (doseq and (for for what you're trying to do. user=> (doc dotimes) - clojure.core/dotimes ([bindings & body]) Macro bindings => name n

Re: Prepping clojure for packaging (was: Re: Clojure for system administration)

2010-02-06 Thread Mike Meyer
On Sat, 6 Feb 2010 18:25:47 -0800 (PST) Constantine Vetoshev wrote: > On Feb 6, 1:06 pm, Peter Schuller wrote: > > But the practical issue > > remains that if I want to write some software that I want sysadmins in > > various situations to want to use effortlessly (in my case, a backup > > tool)