Re: eclipse/counterclockwise/maven question

2010-04-03 Thread Christopher Taylor
Hi, On 01.04.2010, at 20:00, Stuart Halloway wrote: > (2) When I import the project, the package explorer shows JRE System Library > J2SE 1.4. The Clojure REPL then bombs needing Java 1.5 features. I can edit > the project properties after the import, but shouldn't there be some way to > say t

Re: Why can't :let be first in a for

2009-10-26 Thread Christopher Taylor
Dear all, I've got a re-implementation of the for-macro sitting around here that removes this limitation (and others, the vector can't be empty either, if I remember correctly). The implementation also adds the sorting and grouping functionality described in Wadler and Jones' paper "comprehensive

Re: constructing maps

2009-05-04 Thread Christopher Taylor
Hi Nathan, On 04.05.2009, at 15:47, Nathan Hawkins wrote: > > On Mon, 4 May 2009 06:16:14 -0700 (PDT) > Drew Raines wrote: >> >> Whoops, that (seq) is a debugging artifact. You can remove that: >> >> (let [test-str "foo=1;bar=2;baz=3"] >> (reduce conj {} >> (map #(apply hash-map (.sp

Re: ANN: Full, continuously updated documentation for clojure.contrib

2009-05-03 Thread Christopher Taylor
Tom, thanks, that's great! I think it would be really useful if the overview appeared as a link on the contrib landing page. all the best, --Chris On 04.05.2009, at 08:41, Tom Faulhaber wrote: > > Hello everybody, > > As many of you know, I have been working on a "contrib autodoc robot" >

Re: shortcut for for comprehension

2009-04-20 Thread Christopher Taylor
On 21.04.2009, at 00:19, Michael Hunger wrote: > > Is it possible to use :while to shortcut a for macro when a certain > number of yiels have happened? > > e.g. (for [x (range 1000) :when (= (rem x) 1) :while (number of > yields <= 10)] > > so i want only the first 10 results. you could: (d

Re: how to emulate lisp's labels functionality?

2009-02-21 Thread Christopher Taylor
On 15.02.2009, at 06:26, Chouser wrote: > > On Sat, Feb 14, 2009 at 11:32 PM, GS wrote: >> >> On Feb 14, 12:21 pm, Chouser wrote: >>> >>> (defn count-instances [obj lsts] >>> (let [instances-in (fn thisfn [lst] >>> (if (seq lst) >>> (+ (if (= (fir

Re: XML Namespaces :xmlns, was Re: xml/parse

2008-12-12 Thread Christopher Taylor
On 12.12.2008, at 15:49, J. McConnell wrote: > > On Fri, Dec 12, 2008 at 9:39 AM, Chouser wrote: >> >> On Fri, Dec 12, 2008 at 9:15 AM, J. McConnell >> wrote: >>> >>> {:tag :root, :attrs nil, :content [ >>> {:tag :fragment, :attrs nil, :content [ >>> {:tag :

Re: thanks, errata, and one gaffe

2008-11-18 Thread Christopher Taylor
Stuart, I'd be very interested to see something on Ties (http://www.bitbucket.org/achimpassen/clojure-ties/wiki/Home ), which while not being in clojure-contrib, shows lots of promise. all the best, --Chris On 17.11.2008, at 15:13, Stuart Halloway wrote: > > Hi Brian, > > The libraries cha

Re: Can't get rlwrap to work

2008-11-15 Thread Christopher Taylor
Hi, On 12.11.2008, at 22:38, Giacecco wrote: > > Hi all, > I am trying setting up clojure to use rlwrap as described at > http://en.wikibooks.org/wiki/Clojure_Programming#Enhancing_Clojure_REPL_with_rlwrap > on a MacOS 10.5.5. > > I have prepared the clj-completions.clj the instructions describe

Re: Weird exception behavior

2008-10-25 Thread Christopher Taylor
On 24.10.2008 13:39 Uhr, Rich Hickey wrote: >> user=> (test-fn) >> finally clause >> java.lang.RuntimeException: user.UserException: thrown exception >> (NO_SOURCE_FILE:0) >> >> So am I doing something wrong or is this a bug when an exception is >> thrown from inside a call to map? >> > > Current

Re: offtopic - where are you come from? (poll)

2008-10-21 Thread Christopher Taylor
ok, trying again... here's a hello from Berlin, Germany :) On 21.10.2008 2:11 Uhr, Dirk Vleugels wrote: > Duesseldorf& Hamburg, Germany > > Cheers, > Dirk > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clo

Re: offtopic - where are you come from? (poll)

2008-10-17 Thread Christopher Taylor
another German here, but from Berlin :) On 17.10.2008, at 14:07, mb wrote: > > Frankfurt am Main, Germany > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c

Re: "Getting Started" is NOT starting for me...

2008-09-20 Thread Christopher Taylor
btw, showMessageDialog being a static method, isn't the preferred syntax (javax.swing.JOptionPane/showMessageDialog nil "Hello World!") both versions work here (standard OSX Java). $ java -version java version "1.5.0_13" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_13- b05-237

Re: clojure/ns and gen-and-save-class

2008-09-05 Thread Christopher Taylor
Hi, this is my first post to the list (though I've been lurking for a while) and I'm not yet actively working with Clojure, so take what I say here with a grain of salt :). On Sep 4, 2008, at 3:28 PM, Rich Hickey wrote: > On Sep 3, 7:51 pm, Rich Hickey <[EMAIL PROTECTED]> wrote: >> On Sep 3,