Re: Changing State Pattern - Better Options?

2009-01-18 Thread Phil Jordan
DavidH wrote: > In the code I'm writing, I seem to run into a certain pattern a lot. > Often enough anyway that I thought there must be a different way of > doing it - otherwise there would be a macro or function for it. > > The gist is that a function is applied to each member of a sequence, > l

Re: add-classpath erroring out, post r1100...

2008-11-17 Thread Phil Jordan
Rich Hickey wrote: > I'm going to deprecate add-classpath because people consistently use > it to avoid the standard classpath-setting mechanisms, at least until > I can figure out a way to coordinate it with the standard classloader. You could make it a thread-local binding within the repl and u

Re: FindBugs run on Clojure source code

2008-11-15 Thread Phil Jordan
Hi Attila, I can't comment on the other issues, but: Attila Szegedi wrote: > 2. Keyword and Ref define compareTo, but don't redefine equals (and > hashCode) to be consistent with it. It ain't necessarily a problem if > you know what you're doing, but since they're public it's usually a > g

Re: LazyMap and why Delegation is powerful

2008-10-27 Thread Phil Jordan
Meikel Brandmeyer wrote: > Am 25.10.2008 um 15:49 schrieb Phil Jordan: >> I tried both the release jar and building my own from hg (by the way, >> your Makefile fails on GNU Make on Linux, as far as I can tell it's >> because you're using .for) and they suffer fro

Re: java interop question

2008-10-27 Thread Phil Jordan
notallama wrote: > this may be more of a java question than a clojure question. i dunno. > > how do i use a java class from clojure? > > it's easy enough if it's one of the default java libraries, but so far > all i have managed with classes i wrote is "unable to resolve to > classname" > > i t

Re: Recent breakage (regression?) of macros

2008-10-27 Thread Phil Jordan
Hi Rich, Thanks for the quick reply! I'm probably just being slow here, for which I apologise, but some questions remain: Rich Hickey wrote: > On Oct 26, 3:49 pm, Phil Jordan <[EMAIL PROTECTED]> wrote: >> First of all, is the breakage intentional? > > Yes. You can

Recent breakage (regression?) of macros

2008-10-26 Thread Phil Jordan
Hi, I'm having some trouble with existing code after a recent svn update. I think it must have happened sometime in the last 2 or so weeks, but it might be slightly longer. The problematic code can be reduced to this: user=> (def mylocals ['A (fn [] "foo")]) #=(var user/mylocals) user=> (defma

Re: LazyMap and why Delegation is powerful

2008-10-25 Thread Phil Jordan
Hi Meikel, Meikel Brandmeyer wrote: > Dear Clojurians, > >> I'd like to announce LazyMap2. LazyMap is to the map types, what >> lazy-cons is to sequences. > And obviously it is broken, because LazyMapSeq implements only ISeq and > not Sequential. The fix is already in the Mercurial repository. >