Yes, it is a StringBuilder so technically yes.   I guess you since the only
thing you ever do with a StringBuilder is produce a string it just seemed
like
it would be a string.   Same goes for StringBuffer.

On Sat, Nov 8, 2008 at 11:52 PM, Dave <[EMAIL PROTECTED]> wrote:

>
> (Sorry if this is a repeat; hotel networking is sketchy.)
>
> On Nov 9, 12:07 am, "Brian Doyle" <[EMAIL PROTECTED]> wrote:
> > This seems like a bug returning false for StringBuilder.
> >
> > user=> (string? (new java.lang.String "hello"))
> > true
> >
> > user=> (string? (new java.lang.StringBuilder "hello"))
> > false
>
> Wouldn't it be a StringBuilder, not a String?
>
> user=> (. (new java.lang.StringBuilder "hello") getClass)
> #=java.lang.StringBuilder
> user=> (string? (. (new java.lang.StringBuilder "hello") toString))
> true
>
> Dave
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/clojure?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to