I thought you were asking for comments, so I commented.
I think the view that substring in Java has a "quirk" because uses the [a, b[ convention for intervals is questionable.
That "semi-open interval" is in my opinion the correct approach (may be on par or second only to a start/size approach). A "boundary included" [a, b] would instead be worse for many reasons.
Java has no "quirk" here: it's the correct thing to do (and please note that I'm surely NOT a Java fan, at all).
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I thought you were asking for comments, so I commented.
I think the view that
substring
in Java has a "quirk" because uses the[a, b[
convention for intervals is questionable.That "semi-open interval" is in my opinion the correct approach (may be on par or second only to a
start/size
approach). A "boundary included"[a, b]
would instead be worse for many reasons.Java has no "quirk" here: it's the correct thing to do (and please note that I'm surely NOT a Java fan, at all).