Re: Complex type in clojure

2010-07-20 Thread Mike Benfield
The lack of complex numbers is keeping me on the fence about Clojure. I could (and partially have) implement them in Clojure itself, but this is not as satisfying as having them built in with reader syntax and so on. I don't have the will right now to learn enough about Clojure internals and how t

Re: Clojure's syntax design: macros vs functions

2009-03-05 Thread Mike Benfield
FWIW: I have thought the same thing in the past. But, in practice, this has never been a problem for me. Not once. Now I haven't written quadrillions of lines of Lisp, but it doesn't seem to have been a problem for those who have either. One thing to keep in mind is that you don't typically have

Re: Mathy operations on non-numerics (was "Adding" strings)

2009-02-26 Thread Mike Benfield
On Feb 26, 4:56 pm, Peter Wolf wrote: > > So my vote is that String are atomic built in objects, and at least +, < > and > should work with Strings.  The behavior should be just like Java, > so (+ "foo" 2) --> "foo2" I have an HP calculator. (I may get some of the details wrong here, I haven

Re: do-form swallows exception?

2009-02-17 Thread Mike Benfield
Map is lazy. You are presumably executing (foo) at the REPL. In the first foo, since the value calculated by map is unused, no elements of the seq are calculated and your anonymous function never runs. In the second foo, since the function actually returns the value and the REPL wants to print it,

Re: what does -> mean?

2009-02-01 Thread Mike Benfield
On Feb 1, 3:35 pm, e wrote: > This may be obvious to others, but what's the motivation behind it?  Is it > that we are very concerned about combatting the criticism that lisp has too > many parens? > Applying functions in succession without giving a name to each intermediate value can be very

Re: string interpolation

2008-10-28 Thread Mike Benfield
I've always preferred a function like str to either of these options anyway. (str "Hi " someone ", my name is " myname) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send ema