Closed robrix closed 9 years ago
If x * 2..<2
means that it parses exactly two times, then what does x * 2...2
mean? The same thing?
Hm, good point—we’re probably actually conflating things a bit. for each in 2..<2 { println(each) }
won’t print at all, whereas using 2...2
will print 2
; in keeping with that, repetition by empty half-closed intervals should probably be an error.
Alright, changed the semantics for ..<
, and added support for ...
. Now, back to paying work!
Got the work in a merge request over here: https://github.com/robrix/Madness/pull/62
Fixed by #63.
will often read more naturally than