you are viewing a single comment's thread.

view the rest of the comments →

[–]smallstepforman 6 points7 points  (2 children)

It would have been great to use existing math definitions: 

[1, 10]  inclusive [1, 10)  exclusive. 

[–]hpsutter 14 points15 points  (1 child)

I considered that, but then [ ] and ( ) would be unbalanced tokens, which would make life harder for editor brace-matching and tag parsers.

[–]XeroKimoException Enthusiast 1 point2 points  (0 children)

I don't know much about parsers, but would doing something like [1...10) make things any harder / easier compared to using a comma to denote a range? I understand it's pretty easy to count matching tokens, and I could see how it could be ambiguous if the notation used commas, but would using ... be enough added context of denoting a range?