On 15 November 2017 at 16:55, Gary Gregory <garydgreg...@gmail.com> wrote:
> Hi All,
>
> We have both StringUtils.left(String,int) and
> StringUtils.truncate(String,int)
>
> Can we deprecate truncate in favor of left (and add
> StringUtils.left(String,int, int)) ?

No, because truncate() does not behave the same as left() if the
length is negative.

> I like left() better due to the symmetry with right().

I like truncate() better - to me it says more clearly what is happening.

> Gary

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

Reply via email to