Re: Deep deref

2009-11-17 Thread AndrewC.
On Nov 15, 9:05 am, Danny Woods wrote: > > Danny, could you maybe hack up a possible very simple example of what > > you mean? > > > > > I can not simply store a copy of the Karl person in Tinas :friends > > slot, > > because when Karl gets one year older, then I don‘t want to go through > > al

Re: Deep deref

2009-11-17 Thread AndrewC.
> In the example I made up Tina has the friend Karl. > I can not simply store a copy of the Karl person in Tinas :friends > slot, > because when Karl gets one year older, then I don‘t want to go through > all persons, looking for Karls, and have their age updated. > Instead it is preferred to have

Re: Generalizing -> & ->>

2009-11-03 Thread AndrewC.
On Nov 3, 1:43 am, Alex Osborne wrote: > Sean Devlin wrote: > > This is slightly unrealted, but how does one pronounce ->, ->> and the > > like?  Is this documented? > > The doc-strings usually give you a nice hint.  I usually use "thread" > for -> and "thread last" for ->>.  The actual symbols I

Re: Periodic tasks

2009-10-30 Thread AndrewC.
On 30 Oct, 16:18, Albert Cardona wrote: > How about: > > (import '(java.util.concurrent Executors TimeUnit)) .. > Admittedly very java-ish. Personally, I think Java-ish is the way to go here. John's actor lib is pretty nifty, but it is relying on implementation details of the threading o

Generalizing -> & ->>

2009-10-29 Thread AndrewC.
Here's a macro that generalizes the two 'threading' macros -> and ->>. It works by using the idea of 'nesting marker' (from Oz) to specify where the result of the previous form should be nested in the subsequent form. (defmacro -$> "Threads the expr through the forms. Inserts x into the firs

Re: clojure-mode survey

2009-09-09 Thread AndrewC.
On Sep 9, 11:02 am, Michael Kohl wrote: > On Wed, Sep 9, 2009 at 3:08 AM, Phil Hagelberg wrote: > > This just resets the classpath to include target/dependency/ as well as > > any jars in the lib/ directory of your project. I've included this in > > the Emacs Starter Kit but haven't included i

Re: Clojure Workshop in London next Monday

2009-07-21 Thread AndrewC.
On Jul 14, 8:56 pm, Alex Scordellis wrote: > Next Monday evening we're hosting a Clojure Workshop at the > ThoughtWorks offices in central London. Just wanted to say thanks to Alex for organising this. Got off to a good start by bumping into an old colleague in Thoughtworks' offices, and then

Re: No OO restrictions is good. why not still add dependency injection?

2009-06-17 Thread AndrewC.
On Jun 16, 11:34 am, Jules wrote: > I still don't know what dependency injection means exactly. The > examples I've seen that are said to use dependency injection can be > solved by using first class functions. Are first class functions what > you want? Dependecy injection is nothing more than

Re: Date Adapter Utility

2009-06-12 Thread AndrewC.
On Jun 12, 2:24 am, Sean Devlin wrote: > Hey everyone, > I'm looking for feedback on a date utility library I'm writing. Without wanting to seem down on your obvious care and hard work, the last time this came up the general consensus was that "Date libraries are much harder then you think. Us

Re: Thoughts on bags?

2009-06-09 Thread AndrewC.
On Jun 9, 7:49 am, Konrad Hinsen wrote: > On 09.06.2009, at 07:31, Richard Newman wrote: > > > Has there been any thinking about supporting a 'bag' sibling of 'set', > > and allowing it to be passed correctly through the relational > > operators? Right now I have a choice between rephrasing my co

Re: Abstract data types in functional languages

2009-04-24 Thread AndrewC.
On 23 Apr, 17:59, Mark Engelberg wrote: > Another problem that has already been "solved" by many OO languages is > that initially it is most convenient to code certain things as > properties of the object, and somewhere down the line, you may want to > change property access into a method call.

Re: The Path to 1.0

2009-04-21 Thread AndrewC.
On Apr 21, 1:52 am, Rich Hickey wrote: > > I'm unfamiliar with the POM version coordinate system - any hints? > > Rich 1 Pager on coordinates from the 'definitive guide' http://www.sonatype.com/books/maven-book/reference/simple-project-sect-maven-coordinates.html --~--~-~--~~

Re: swank-clojure: swank-clojure-init-files not used

2009-03-17 Thread AndrewC.
On Mar 17, 11:10 am, Tassilo Horn wrote: > "AndrewC." writes: > > The other problem is that it uses add-to-list so if you reload slime > > to refresh the value of slime-lisp-implementations, you end up with > > two clojure entries in the list. > > Why

Re: swank-clojure-extra-classpaths troubles

2009-03-17 Thread AndrewC.
> > Yes, for me having directories in `swank-clojure-extra-classpaths' > doesn't work at all.  Everything except jar files are discarded.  So > that's the general problem for me, the examples are one specific case > which bites me. Yes - here is the form the computes the default calue of slime-cl

Re: swank-clojure: swank-clojure-init-files not used

2009-03-17 Thread AndrewC.
On Mar 16, 2:08 pm, David Nolen wrote: > On Mon, Mar 16, 2009 at 3:42 AM, Tassilo Horn wrote: > > > > > When adding ~/.clojure/ to `swank-clojure-extra-classpaths' and starting > > SLIME, htop shows that this directory is not in the -cp java option. > > Sending a SIGINT kills the clojure proces

Re: Clojure plugin for IntelliJ IDEA published

2009-02-27 Thread AndrewC.
On Feb 26, 7:08 pm, CuppoJava wrote: > Hello Ilya, > Thanks for the workaround. > > I'm glad to hear you're working on a "surround with" feature. Some > other parenthesis commands that I most commonly use is: >   1) Delete next Sexp. >   2) Splice Sexp. (Remove the parenthesis around the curren

Re: London Clojurians

2009-02-03 Thread AndrewC.
On Feb 3, 12:54 pm, Tom Ayerst wrote: > I suggest we work to James' schedule and talk about Compojure in our first > meet; how does that sound? > > I don't have access to a private venue.  If anyone else does that would be > cool, otherwise I'll try and find somewhere reasonably quiet, suggestion

Re: Any way we can get this in clojure-contrib?

2009-01-23 Thread AndrewC.
On Jan 23, 8:41 am, lpetit wrote: > Interesting. Are u sure joda-time is so widely in usage among java > developers ? I use it and so do all my friends :) I believe there are moves afoot to get it included in the JDK sooner or later. https://jsr-310.dev.java.net/ --~--~-~--~~-