[ 
https://issues.apache.org/jira/browse/TEXT-45?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15980433#comment-15980433
 ] 

Rob Tompkins edited comment on TEXT-45 at 4/23/17 3:31 PM:
-----------------------------------------------------------

I disagree with my comment from Feb 7 now. The varargs delimiters makes 
substantially more sense consider {{WordUtils.capitalize("i am.fine", [' 
','.'])="I Am.Fine";}}. This reads considerably easier than 
{{WordUtils.capitalize("i am.fine"," .")}}. This feels vague because I wonder 
whether to use the string as a whole as the delimiter or the character array 
underlying the string as individual delimiters?


was (Author: chtompki):
I disagree with my comment from Feb 7 now. The varargs delimiters makes 
substantially more sense consider {{WordUtils.capitalize("i am.fine", [' 
','.'])="I Am.Fine";}}. This reads considerably easier than 
{{WordUtils.capitalize("i am.fine"," .")}}. This feels vague because I wonder 
whether to use the string as a whole as the delimiter or the character array 
underlying the string as the delimiter?

> WordUtils delimiters should be strings, not char varargs
> --------------------------------------------------------
>
>                 Key: TEXT-45
>                 URL: https://issues.apache.org/jira/browse/TEXT-45
>             Project: Commons Text
>          Issue Type: Improvement
>            Reporter: Andrew Pennebaker
>            Priority: Minor
>              Labels: api,, interface,ease,of,use,, robustness,
>             Fix For: 1.1
>
>
> Strings behave like char varargs of arbitrary length, but are much easier to 
> use.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to