You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently labels are positioned in the text buffer using a Range<L>.
This means it's impossible to represent a label that runs until the end of the text buffer of length L::MAX, because of wraparound.
I also don't see the point of modelling a zero-width span, so RangeInclusive seems like a much tighter fit for this use-case.
We can make invalid states unrepresentable, here.
The text was updated successfully, but these errors were encountered:
Currently labels are positioned in the text buffer using a
Range<L>
.This means it's impossible to represent a label that runs until the end of the text buffer of length
L::MAX
, because of wraparound.I also don't see the point of modelling a zero-width span, so
RangeInclusive
seems like a much tighter fit for this use-case.We can make invalid states unrepresentable, here.
The text was updated successfully, but these errors were encountered: