Re: force evaluation of macro parameter

2011-02-05 Thread Ken Wesson
On Sun, Feb 6, 2011 at 12:57 AM, Eugen Dück wrote: > I'm talking about '~name on > https://github.com/clojure/clojure-contrib/blob/master/modules/dataflow/src/main/clojure/clojure/contrib/dataflow.clj#L338 > and below. > > I want to be able to generate names, i.e. I don't have them as > literals.

Re: Any news on pull requests?

2011-02-05 Thread Eugen Dück
scan -> email would be more convenient for me. @Chistopher > people keep citing it as some unique requirement foisted upon the community > by a power hungry dictator That's a generalization that lacks any relation to this thread, and I guess even the clojure community in general. I'm not aware o

Re: force evaluation of macro parameter

2011-02-05 Thread Eugen Dück
I'm talking about '~name on https://github.com/clojure/clojure-contrib/blob/master/modules/dataflow/src/main/clojure/clojure/contrib/dataflow.clj#L338 and below. I want to be able to generate names, i.e. I don't have them as literals. On Feb 5, 2:29 pm, Ken Wesson wrote: > On Sat, Feb 5, 2011 at

Re: Any news on pull requests?

2011-02-05 Thread Mikhail Kryshen
As I understand it (and I might be wrong), there are basically two types of open source projects regarding copyright and Contributor Agreement. The first type are projects where contributors hold exclusive copyright on their contributions. These projects often does not require contributors to sign

Re: Any news on pull requests?

2011-02-05 Thread Christopher Petrilli
On Sat, Feb 5, 2011 at 1:23 PM, Mike Meyer wrote: > On Sat, 5 Feb 2011 00:09:41 -0500 > Christopher Petrilli wrote: >> For example, the following projects REQUIRE contributor agreements, in >> writing, signed and either scanned or on paper, prior to accepting any >> patches or commits: >> >> - Fr

Re: overriding seq in defrecord

2011-02-05 Thread Brian Goslinga
On Feb 5, 5:51 pm, Kees-Jochem Wehrmeijer wrote: > Well, my idea was for the type to hold a datastore query (Google App > Engine). At the moment I'm using a map for this. To get the results > from the query I have a function run-query that takes the map and > returns a seq based on an Iterable. I

Re: overriding seq in defrecord

2011-02-05 Thread Kees-Jochem Wehrmeijer
> Why do you want to override seq? The only reason that I can think of > is that you are implementing some sort of custom data type. If that is > the case, you should be using deftype instead; defrecord is a protocol- > aware drop in replacement for normal maps. Well, my idea was for the type to h

Re: overriding seq in defrecord

2011-02-05 Thread Brian Goslinga
Why do you want to override seq? The only reason that I can think of is that you are implementing some sort of custom data type. If that is the case, you should be using deftype instead; defrecord is a protocol- aware drop in replacement for normal maps. On Feb 5, 2:58 pm, Kees-Jochem Wehrmeijer

overriding seq in defrecord

2011-02-05 Thread Kees-Jochem Wehrmeijer
Hi all, I'm playing around with defprotocol and defrecord and I ran into a problem when trying to provide my own seq method. I try to create a record like so: (defrecord Foo [bar] clojure.lang.Seqable (seq [this] (seq this))) but I get an error: error: java.lang.ClassFormatError: Duplicate me

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-05 Thread B Smith-Mannschott
On Sat, Feb 5, 2011 at 10:14, B Smith-Mannschott wrote: > I considered that, but decided against it because vector is the > conventional syntax for variable bindings in Clojure (let, fn, > defrecord, ...) Once I'd decided to do that, it became clear that the > first of the forms would become the

Importing defprotocol and deftype

2011-02-05 Thread Shantanu Kumar
When I declare using defprotocol: (defprotocol IFoo (bar [this] "some doc")) and then using deftype: (deftype Foo IFoo (bar [this] "from Foo::bar")) I noticed there is an interesting difference in the way I need to import them in another namespace: (:import (com.example_ns IFoo)

Re: Any news on pull requests?

2011-02-05 Thread Ken Wesson
On Sat, Feb 5, 2011 at 1:23 PM, Mike Meyer wrote: > Seriously, the "snail-mail" requirement is the only one that's really > objectionable. Most places are quite happy with a scanned image of the > signed document (i.e. - the Chickasaw nation for my citizenship > papers). Same here. In my case, sn

ANN: ArmageDOM: XML DSL

2011-02-05 Thread Pepijn de Vos
Hey all, I was going to do some RSS/Atom Ring app, when I found out there does not seem to be a nice library in Clojure to generate namespace aware XML. Then I started looking for a Java lib that renders XML. I found a lot of parsers, and a lot of cruft. That is why I made ArmageDOM. A simple

Re: Any news on pull requests?

2011-02-05 Thread Mike Meyer
On Sat, 5 Feb 2011 00:09:41 -0500 Christopher Petrilli wrote: > For example, the following projects REQUIRE contributor agreements, in > writing, signed and either scanned or on paper, prior to accepting any > patches or commits: > > - Free Software Foundation > - Apache, and everything under it

Re: searching for a good name thread-let, thread-with, thread-thru

2011-02-05 Thread B Smith-Mannschott
On Sat, Feb 5, 2011 at 00:19, Michael Ossareh wrote: > On Fri, Feb 4, 2011 at 12:05, B Smith-Mannschott > wrote: >> >> I came up with this macro, but I'm unsure what to call it: >> >> (defmacro thread-let [[varname init-expression :as binding] & expressions] >>  {:pre [(symbol? varname) >>