New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Str ~~ Range(with Str end points) gives wrong results #6137
Comments
From @zoffixznetThe smartmatch needs to give True, as the element is present in that range: 20:18 IOninja m: say "1117-11" ~~ "1126-12" .. "2017-11" The issue is that `before`/`after` comparators are used and the comparison gives False, because 20:19 s: "1126-12" .. "2017-11", 'ACCEPTS', \("1117-11") P.S.: Range looks like it's itching to split into Int, Numeric, and Str subclasses (with Ranged role tying them up or something). P.P.S.: confusion with string Ranges is common, perhaps the weird stuff should be left to the sequence op, |
From @lizmat
FWIW, I’ve already tried the IntRange approach about 2 years ago. It was shot down then. Maybe things have changed. I certainly hope so.
Agree. |
The RT System itself - Status changed from 'new' to 'open' |
Migrated from rt.perl.org#130959 (status was 'open')
Searchable as RT130959$
The text was updated successfully, but these errors were encountered: