Re: shorter alternatives for `comp' and `partial'

2010-11-16 Thread Paul Hobbs
gt; > > > > Best -- Eric > > > > > "Eric Schulte" writes: > > > > Hi Paul, > > > > > > Thanks for sharing this. It seems like the best compromise between > the > > > > desire to keep my code brief (at le

Re: shorter alternatives for `comp' and `partial'

2010-11-16 Thread Paul Hobbs
Hi Eric, Looks good; nice job with complement too. Of course you can add it to the Emacs Starter Kit ;-) -- Paul Hobbs On Tue, Nov 16, 2010 at 9:51 AM, Eric Schulte wrote: > Just to follow up, I'm now using the following to pretty up Clojure code > in Emacs > > #+beg

Re: shorter alternatives for `comp' and `partial'

2010-11-15 Thread Paul Hobbs
identifier you want in your own code, just don't ask me to read or debug any > of it. > > On Nov 15, 2010, at 2:12 PM, Paul Hobbs wrote: > > Coming from Haskell, where composition and partial functions are cheap and > free in terms of character count, it is actually pretty d

Re: shorter alternatives for `comp' and `partial'

2010-11-15 Thread Paul Hobbs
Coming from Haskell, where composition and partial functions are cheap and free in terms of character count, it is actually pretty discouraging to have to spell it out in Clojure for the same effect. Some of the cases where you "should" be using multiple expressions in Clojure would be perfectly c

Re: Some questions about Clojure Protocols

2010-11-04 Thread Paul Hobbs
Meikel, Strong type systems make programming in the large easier. It would be nice if I didn't have to walk on eggshells when using a library. Written agreements are also known as "gotchas". -- Paul Hobbs On Wed, Nov 3, 2010 at 11:30 PM, Meikel Brandmeyer wrote: > Hi, &g

Re: Emacs - Problem with running tests (yes I installed with ELPA)

2010-06-01 Thread Paul Hobbs
I have a similar issue whenever I try to print anything from slime. -- Paul Hobbs On Mon, May 31, 2010 at 11:41 PM, Steve Molitor wrote: > When I run clojure-test-run-tests I can't see the intermediate test > output. Messages like the following flash by as the tests run: >

Re: (apply interleave [[1 2]])

2010-05-31 Thread Paul Hobbs
Makes sense. -- Paul Hobbs On Sat, May 29, 2010 at 11:51 PM, Eugen Dück wrote: > Paul, > > I already gave a minimal example of the code it makes simpler, i.e. > work in the first place: > > (apply interleave some-colls) > > I ran into this a couple of times, and

Re: (apply interleave [[1 2]])

2010-05-29 Thread Paul Hobbs
What code would this make simpler? Are you constantly having to check this special case? If not, I don't see a reason to include it. -- Paul Hobbs On Sat, May 29, 2010 at 1:32 AM, Eugen Dück wrote: > When I do > > (apply interleave some-colls) > > and some-colls is a se

Re: labrepl dependencies

2010-05-26 Thread Paul Hobbs
Harrison, Use leiningen (http://github.com/technomancy/leiningen) and then run "lein deps" at your command line. -- Paul Hobbs On Wed, May 26, 2010 at 11:34 PM, Harrison Maseko wrote: > Hi all, > The instructions on the labrepl git page says to "download missing > depe

Re: swank-clojure and GNU Emacs 23 - package.el install issues

2010-05-17 Thread Paul Hobbs
Seconded, I'm having troubles with both swank-clojure and clojure. -- Paul Hobbs On Mon, May 17, 2010 at 1:18 PM, Terrence Brannon wrote: > Hello, I wanted to try out Clojure. It was my understanding that > swank-clojure was a package GNU Emacs that would download clojure > auto