Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
On 11 Apr., 00:34, Ævar Arnfjörð Bjarmason wrote: > > As far as I know, there were problems with the protocol using symbols > > in CL's package::symbol syntax (and some other characters not being > > allowed in Clojure) after changes in CVS Slime about five months ago. > > So it would just need t

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
On 10 Apr., 19:44, Ævar Arnfjörð Bjarmason wrote: > I'm not familiar with the history but is there any reason why > swank-clojure isn't being integrated into the SLIME distribution > itself? That should make it easier to make it work out of the box. As far as I know, there were problems with the

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
Hello! On 10 Apr., 18:57, Phil Hagelberg wrote: > > Like Ævar, I am not aware of any other language mode that makes the > > usual way of installing/configuring as hard asswank-clojure. That is > > why I use a pretty ancient version of it, which in turn prevents me > > from using the latest cvs s

Re: My non-ELPA Emacs swank-clojure setup

2010-04-10 Thread DanL
Hello! On 8 Apr., 18:36, Ævar Arnfjörð Bjarmason wrote: > > Both those options sound like an awful lot of work. I'm curious as to > > what advantages there are to this method over the original > > installation instructions. > > They're only a lot of work because the existing .el code all assumes

Re: difference between if/when

2010-02-28 Thread DanL
Hello! On 28 Feb., 18:08, Аркадий Рост wrote: > Hi! > > hmm...I don't understand why clojure when and if simultaneously? What > is the diffirences between them and when I should use one instead > another one? Besides the implicit do, which reynard mentioned, it's generally idiomatic to use while

Re: more lazy "fun"

2010-01-29 Thread DanL
Hello! On 29 Jan., 20:14, Meikel Brandmeyer wrote: > CL find as I understand it: (some (partial = x) some-coll). Sufficiently ugly > to show performance characteristics. > CL member as I understand it: (drop-while (partial not= x) some-coll). > Sufficiently ugly to show performance characterist

Re: more lazy "fun"

2010-01-29 Thread DanL
Hello! On 29 Jan., 11:24, Meikel Brandmeyer wrote: > http://groups.google.com/group/clojure/msg/f2585c149cd0465d Rich has valid points but still, bad performance characteristics might be something that I, the user, should take responsibility for. I'm not sure if such considerations should preven

Re: more lazy "fun"

2010-01-29 Thread DanL
Hello! On 29 Jan., 03:49, Sean Devlin wrote: > I'd do one thing differently than Tim.  (partial = something) is a > clojure smell.  It's more idiomatic to use a set > > (if (some #{"foo"} ["foo" "bar"]) "yay" "humbug") In my opinion, there really should be something like CL's FIND or MEMBER in c

Re: apply macro to 'argument' list?

2010-01-28 Thread DanL
On 29 Jan., 02:05, Mike Meyer wrote: > IIRC, some Pre-CL lisps had four function definition facilities: You > could either get all your arguments evaluated, or not; and you could > get your arguments bound to variables, or just get the list of > them. The former turned into macros, because that wa

Re: apply macro to 'argument' list?

2010-01-28 Thread DanL
Hello! On 28 Jan., 23:00, Raoul Duke wrote: > > Doesn't extend to arbitrary number of arguments, though. > > that was sorta a deal-breaker. :) That I show you this doesn't necessarily mean that you should use it: (let [x [true true false true]] (eval `(and ~...@x))) -- You received thi

Re: more lazy "fun"

2010-01-28 Thread DanL
Hello! On 28 Jan., 21:26, Raoul Duke wrote: [...] >  (if (vec final-answer) ...) [...] I think you expect "nil punning" which was dropped before the 1.0 release. Think like this: If you have an empty basket, is that nothig or still an empty basket? > (when '() 'yay) yay The idiomatic way to te

Re: more lazy "fun"

2010-01-28 Thread DanL
Hello! On 28 Jan., 21:10, Raoul Duke wrote: [...] > even if the result of evaluating the lazy sequence would be the value 'false'. [...] When exactly would a lazy sequence evaluate to false? Regards dhl -- You received this message because you are subscribed to the Google Groups "Clojure" gr

Re: newbie question about ns and :require

2010-01-28 Thread DanL
Hello! On 27 Jan., 22:49, Raoul Duke wrote: > On Wed, Jan 27, 2010 at 1:41 PM, Matt Revelle wrote: > > In general, if you see a form that looks like it's a special language > > and wouldn't evaluate its > > contents before executing the form then it's a macro. > > but that is a chicken-egg thing

Re: Proposal: New Reader Macro #s{ ... }

2009-10-12 Thread DanL
On 12 Okt., 20:46, Greg wrote: > Forgive me, but I'm unfamiliar with the readtable, are you just   > referring to where this syntax might be implemented? Or are you   > suggesting an alternative syntax? I'm suggesting that the readtable might be exposed to user changes as it is in CL, but only

Re: Proposal: New Reader Macro #s{ ... }

2009-10-12 Thread DanL
I'm aware that this already has been discussed, and until recently I was content with clojure not exposing the readtable, because of the inherent modular problems. However, for CL, a nice approach to readtables was lately released: http://trittweiler.blogspot.com/2009/10/ann-named-readtables-09.h

Re: read-line in emacs slime on windows problem

2009-10-08 Thread DanL
On 7 Okt., 20:34, Phil Hagelberg wrote: > [...] it's simply not supported [...] I'm pretty sure that it used to work some time ago. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this gro

Re: read-line in emacs slime on windows problem

2009-08-13 Thread DanL
Although I didn't solve the problem, I can confirm it. I'm using latest clojure, slime, swank-clojure (pulled daily), and Cygwin Emacs 23 on XP. On 22 Jul., 22:45, Kelvin Ward wrote: > I've been using EmacsW32 withSLIME. Whenever I call (read-line) in > theREPLit never completes reading the inp