This is the mail archive of the kawa@sourceware.cygnus.com mailing list for the Kawa project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: "foo" as string


Per Bothner <per@bothner.com> writes:

> Luke Gorrie <luke@bluetail.com> writes:
> 
> > Would it be a nice feature to have kawa.lang.FString coercable to
> > java.lang.Sting for the purposes of invoke? At the moment I have a
> > bunch of things like:
> > 
> > (make <javax.swing.JLabel> (str "My label"))
> > (define (str s) (invoke s 'to-string))
> 
> It might be convenient.  However, it is not clear tht sloppier
> use of types is a good idea.  Though the confusion between Scheme
> strings and Java Strings has certainly caused some problems.

To me it doesn't seem sloppy, it actually seems more intuitive/natural
than the scheme symbol -> java string mapping. But that's me - I'd
quite like to have them both coerce. I suppose there's a simple change
I could make in my local copy to do that.

Cheers,
Luke


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]