Swift Around the Web
I started upgrading my project to Swift 3.0 this weekend, and the naming is definitely something I'm still wrapping my head around (looking at you lowercase enums!). Only patience, practice, and constantly reviewing the API Design Guidelines as suggested in this article will help!
Hmm... didn't think of open vs closed ranges as having this much of an irreconcilable difference 🤔
"Not only isn’t there an automatic conversion between closed and half-open ranges, there appears to be no way to do this at all! But why? Well, to turn a closed range into an equivalent half-open range, you would have to find the element that comes after the original range’s upper bound. And that is simply not possible unless the element is
Strideable, which is only guaranteed for countable ranges (and countable ranges do provide initializers to convert between the two)."