2 ms·
The problems with Range are well-understood by now, so I don't think that it would be too much of a stretch to argue that a brand-new type could be added to the
by kibwen 6y ago
The problems with Range are well-understood by now, so I don't think that it would be too much of a stretch to argue that a brand-new type could be added to the stdlib with some variation on the semantics given at the end of the post. However, transitioning the dedicated range syntax to that new type would be the tricky part.
- theon144 6y agoDeprecate two-dot syntax, introduce three-dot syntax? /s
- estebank 6y agoFunnily enough, there was a ... syntax for inclusive ranges, but because when looking at code at a glance it is hard to distinguish between .. and ..., it was replaced with the current syntax: ..=
- Dominear 6y agohave you seen this yet https://www.youtube.com/watch?v=xVGO0NIO848 https://www.youtube.com/watch?v=xVGO0NIO848