-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editorial: consistency in phrasing of ranges and inclusivity/exclusivity #2848
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement. Another option tho would be to use [a, b)
-style notation throughout - that way it'd be unambiguous which sides were inclusive or exclusive, and all permutations could be represented. Any reason not to prefer that?
Thoughts on using the term "interval" instead of "range"? What about using (and explaining) the standard interval notation from maths? Any considerations for using this form for both floats and mathematical values? |
I think defining and using interval notation would be much less ambiguous than prose. |
Updated with far more rigour and renamed ranges to intervals. |
9de5955
to
06d273e
Compare
fb8936a
to
2190bf1
Compare
@michaelficarra was the decision not to use |
spec.html
Outdated
@@ -1760,17 +1761,17 @@ <h1>The Number Type</h1> | |||
<div class="math-display"> | |||
_s_ × _m_ × 2<sup>_e_</sup> | |||
</div> | |||
<p>where _s_ is 1 or -1, _m_ is an integer such that 2<sup>52</sup> ≤ _m_ < 2<sup>53</sup>, and _e_ is an integer such that -1074 ≤ _e_ ≤ 971.</p> | |||
<p>where _s_ is 1 or -1, _m_ is an integer in the interval from 2<sup>52</sup> (inclusive) to 2<sup>53</sup> (exclusive), and _e_ is an integer in the inclusive interval from -1074 to 971.</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one really doesn't seem like an improvement.
8112921
to
19bd4f6
Compare
I noticed this weird ecmarkup rendering issue, so we may want to hold off merging until it is fixed. Ping @bakkot if you want to open an ecmarkup issue with a repro case. I'm guessing it has to do with the HTML comment? |
e5d24da
to
4bc999d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM except
- I am not a fan of the DecimalDigit change, though I am not going to die on that hill
- needs the just-published ecmarkup v14.1.2 to be upstreamed to fix the rendering issue before this lands (possibly as part of this PR)
@bakkot done |
4d19097
to
e1fd6c7
Compare
e1fd6c7
to
a61e503
Compare
a61e503
to
557128e
Compare
557128e
to
2600c07
Compare
String.prototype.lastIndexOf must define _searchLen_ before using it. (fixup for PR tc39#2848)
String.prototype.lastIndexOf must define _searchLen_ before using it. (fixup for PR tc39#2848)
I chose to use "within the inclusive range from A to B" or use chained comparisons where possible. For ranges that have an open end, I name each side as either exclusive or inclusive.