This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
Hello, The description of the Range expression reads(3.3.1): "[...] Otherwise, the result is a sequence containing the two integer operands and every integer between the two operands, in increasing order." According to my interpretation, the expression "1 to 1" should hence evaluate to the sequence "(1, 1)", since that is the two integer operands and every integer between the two operands(which is none). However, one of the examples shows that with two identical operands the result should be a singleton value identical to the operands; "This example constructs a sequence of length one containing the single integer 10. // 10 to 10" I think the pararaph describing the range expressions contradicts the example, and that it should be changed wrt. to the scenario when the two operands are identical. Cheers, Frans
Frans, Thanks for this suggestion. I have clarified the definition of a range expression by adding the following sentence: "If the two operands convert to the same integer, the result of the range expression is that integer." The descriptive text on range expressions is now consistent with the examples. Since this change is based directly on your suggestion, I am closing this bug report. If you have any additional concerns or questions, please reopen the report. Regards, Don Chamberlin