Agree,

I even think there *could* be some utility in having the opposite behavior
(but I'm not even sure about that) :

(+ "1" 2) --> 3 by + trying to cast its non numeric arguments before
throwing an exception ...

-- 
Laurent

2009/2/26 Allen Rohner <aroh...@gmail.com>

>
>
> >
> > 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"
> >
>
> -1
>
> Concatenation is not addition. I'm almost opposed to numeric operators
> all together. If we wrote (add 2 3), there would be no confusion at
> all about what (add "foo" 2) should do, because you'd be writing (conj
> "foo" (str 2))
>
> If addition between a string and number is defined, what is
> subtraction between a string and a number?
>
> Allen
>
>
>
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To post to this group, send email to clojure@googlegroups.com
To unsubscribe from this group, send email to 
clojure+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to