@drewmccormack Also, isn’t ../… in Swift the opposite of what Ruby does?
-
-
-
@mjtsai Don't know. Haven't done much with Ruby.
-
-
-
@drewmccormack as in the range stuff?
-
-
-
@drewmccormack I am not sure why both exist. From x to y makes sense. From x to y-1 is odd. This is the new off by one error. - View other replies
-
@SimplyImagined@drewmccormack for instance: a..b and b..c have no overlaps. Python slicing uses exclusive for a reason! -
@schinckel@SimplyImagined Having both so similar will undoubtedly lead to a bunch of off-by-one bugs. Just like = and == in C.
-
-
@drewmccormack I had the same thought. I can see myself face palming after hours of debugging. -
@drewmccormack I think they're going to be worse. -
@drewmccormack But … being one more than .. makes sense whilst == is not somehow semantically one more than = http://en.wikipedia.org/wiki/Iconicity -
@drewmccormack but ../… Will be much less frequently used.
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Drew McCormack
Michael Tsai
Matthew Schinckel
Dan Anderson
Kim Ahlberg
Steven Vandeweghe
Chris Leicester
Arash Bina