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, like

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 good

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 no longer embed unreadable objects

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 tried