Re: Discount for 2-Day public course on Clojure in Chicago in April

2011-03-16 Thread trptcolin
We've still got some empty seats for this upcoming session (April 14-15), and we've extended the $50-off discount code (CLJ50) until this Friday, March 18. If you're already doing Clojure professionally, it's possible you wouldn't see enough benefit from this course to justify it, but maybe you ha

Re: Importing defprotocol and deftype

2011-02-06 Thread trptcolin
Forgive me if I'm misunderstanding, but you don't need to import a protocol to use it. If you need to actually get ahold of the protocol (say, to implement another deftype/defrecord), you can just use `require` or `use` to get ahold of it: (ns stuff (:use [com.example-ns :only [IFoo])

Re: Enhanced Primitive Support Syntax

2011-01-13 Thread trptcolin
I can't speak for Rich, but your suggestion would mean an additional if statement being executed every time you call +. Not sure if Hotspot (or other JVMs) would compile that away or not... Colin On Jan 13, 3:31 pm, RJ Nowling wrote: > Hi all, > > I've been reading about the changes to Clojure

Re: functional thinking

2010-12-01 Thread trptcolin
On Dec 1, 3:33 pm, Ken Wesson wrote: > On Wed, Dec 1, 2010 at 9:38 AM, Laurent PETIT wrote: > > 2010/12/1 Ken Wesson > > >> On Wed, Dec 1, 2010 at 8:29 AM, Laurent PETIT > >> wrote: > >> > If so, then it may be sufficient to leverage the possibility, in your > >> > testing "framework" (clojure.

Re: if you have submitted an Assembla ticket...

2010-06-03 Thread trptcolin
rks, but I'd be happy to update the ticket myself if I were able. Colin Jones @trptcolin On Jun 3, 9:58 am, Stuart Halloway wrote: > Hi all, > > I am trying to close out important tickets prior to the 1.2 beta release. If > you have submitted a ticket that you think is important,

Re: Newbie suggestion for an implementation - rosettacode pythagorean means

2010-02-21 Thread trptcolin
Aviad, Nice job! One nitpick is that won't work for infinite sequences, since reduce isn't lazy. If you wanted your definitions to work for arbitrary indexes of infinite sequences (like the Fibonacci numbers), you could provide sequences providing successive results for the input sequences. I d