I teach computer science to undergrads and write for The Renegade Coder. I'm most likely taking care of my daughter, watching the Penguins, or reading manga.
Location
Columbus, Ohio
Education
B.S. in CE from CWRU 2016; M.S. in CSE from OSU 2020; PhD in EED from OSU 2024
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.
What is your end goal here?
I thought you were asking for comments, so I commented.
I think the view that
substringin 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/sizeapproach). 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).