Interpolation is well understood by Perl programmers. It's probably a good idea to use a term that many other people already know. Of course, if it doesn't really do interpolation in the Perl sense of the word an alternate name would be a good idea to prevent confusion.
David --- Gary Gregory <[EMAIL PROTECTED]> wrote: > Hello, > > I'm just taking a quick look at Interpolation. > > (1) Does it belong? > > I was at first a little surprised to see something so script-like in > [lang]. I guess it does not feel like something that is missing in > java.lang. OTOH, we are just talking about another form of String search > and replace, so it does make sense under that umbrella. > > (2) The name Interpolation and interpolate. > > I must say that I am a bit turned off by these somewhat mathematical > names. This class is more of String "matcher" or "replacer" thingy. What > does Ant call these things? > > Interpolation.interpolate( templateString, valuesMap ); > > (3) Usage. > > I'd like that class to be more flexible in order to do the following for > example: > > Interpolation interpolation = new Interpolation(); > interpolation.setStartMarker("<"); > interpolation.setEndMarker(">"); > interpolation.setMap(aMap); > String news = interpolation.interpolate(templateString); > > Cheers, > Gary > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > __________________________________ Do you Yahoo!? Take Yahoo! Mail with you! Get it on your mobile phone. http://mobile.yahoo.com/maildemo --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]