3 ms·
I've always found the English language to simply be lacking here. In for instance Dutch there is a very clear distinction between half-open and closed intervals
by aden1ne 6y ago
I've always found the English language to simply be lacking here. In for instance Dutch there is a very clear distinction between half-open and closed intervals: "x tot y" is always half-open, "x tot en met y" is always closed. Whereas in English, "x until y" can mean both things, with all the resulting misunderstandings.
- Izkata 6y agoWe have "to" and "through" in English to distinguish them. Unfortunately "to" isn't always as strict as I'd like... "Until" I'd think of as being the strict "to", except something about it feels off like it couldn't just be dropped in every place to/through can be used.
- Jtsummers 6y agoWhile it isn't used often in conversational English, Common Lisp has a nice way of describing different ranges: for x from 0 to 10 ;; closed, [0,10] for y from 0 below 10 ;; (half-open, [0,10) "below" is unambiguous, as 10 is not below 10.