I would prefer participation in NEW project [converter].
[lang] is used only for general purpose functionality (if I understand
correctly).
In such case it would be possible to put some specific conversion
functionality. Not only for simple types.

Pranas
----------------
Question: should this be in [lang] or a separate [convertor]

Stephen

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: 2002 m. lapkriļæ½io 20 d. 12:13
> To: [EMAIL PROTECTED]
> Subject: Re: [lang] Converters [was:Question suggestion]
>
>
> The biggest problem with configuration is that everybody does it
> differently. I don't remember seeing anybody put any work into it
recently.
>
> One task that needs to be done is the writing of a converter package based
> on the [lang].functor Transformer interface. This would convert simple
types
> (Strings, Numbers, Dates etc.) to and from Strings etc.
>
> Code already exists in this area in [beanutils], but we need a version
based
> on the Transformer interface. Whether this will go into [lang] or a new
> [convertor] project is yet to be decided, but it is needed.
>
> Stephen
>
> >  from:    Jeff Varszegi <[EMAIL PROTECTED]>
> > Is the Configuration stuff used anywhere?  Just curious.  I was looking
at
> the code for
> > BaseConfiguration and was thinking that it should convert between
numeric
> types (which it
> > doesn't).  For instance, if getFloat() is called with a key that is
mapped
> to an Integer object,
> > it won't convert the value to a float and return it, etc.  It should
> probably work more like Java
> > w/ respect to widening/narrowing numeric types, don't you think?
> >
> > In the XMLProperties class I sent to the list a short while ago I had a
> static inner class called
> > PropertyConverter that the enclosing class used to do data-type
> conversions.  Believe you me, I'm
> > not touting the virtues of that class, but I think it would be good to
do
> the same thing with
> > Configuration so the code is reusable, and maybe put it in Lang.  Just a
> simple ute class to do
> > simple data-type conversion.  Right now what's available is scattered
> around.  What do you think?
> >
> > Jeff
> >
> > __________________________________________________
> > Do you Yahoo!?
> > Yahoo! Web Hosting - Let the expert host your site
> > http://webhosting.yahoo.com
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> > For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> >
>
>
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to