On Thu, 27 Apr 2023 22:53:04 GMT, Anthony Scarpino <ascarp...@openjdk.org> wrote:
> I feel the use of `from` and `to` is error prone. I know I never remember if > Arrays.copyOfRange() includes or excludes the `to` index. I think less > mistakes would be made if it used `index` and `length` instead. My feeling is that modern APIs use `from` and `to` instead of `from` and `length`. For example, `Arrays.copyOfRange`, `Arrays.equals` and `Arrays.compare` vs `new String(daata, from, length)`. ------------- PR Comment: https://git.openjdk.org/jdk/pull/13256#issuecomment-1526824465