You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by Stephen Colebourne <sc...@btopenworld.com> on 2003/08/01 02:11:45 UTC

[lang] StringUtils overlay/concatenate/getNested

One final pass through StringUtils suggests these method names as dubious

- overlayString - shouldn't have 'String' in name. Better named as 'replace'

- concatenate - does the name as join(array, null) so should be called
join(array)

- getNestedString - poor name, again with String in it.


Any views on changing these names (by deprecation of course)

Stephen


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] StringUtils overlay/concatenate/getNested

Posted by Ch...@dlr.de.
Stephen Colebourne wrote:
>[snip]
> - concatenate - does the name as join(array, null) so should be called
> join(array)

How about simply "catenate" (aka the UNIX `cat` command)?

Otherwise +0 for "join" which is a established term (perl).

>[snip]

-- 
:) Christoph Reck


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Re: [lang] StringUtils overlay/concatenate/getNested

Posted by Ch...@dlr.de.
Stephen Colebourne wrote:
>[snip]
> - concatenate - does the name as join(array, null) so should be called
> join(array)

How about simply "catenate" (aka the UNIX `cat` command)?

Otherwise +0 for "join" which is a established term (perl).

>[snip]

-- 
:) Christoph Reck