-
Notifications
You must be signed in to change notification settings - Fork 50
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
Assigning segments_ref to segments_ref #520
Comments
@pdimov any idears? |
Yes it's the right thing to do. |
Even more interesting is Not sure about |
No, because back() just returns a string. Assignment can't work for elements, since iterators don't return modifiable references to the underlying element. |
Consider the following:
What should the contents of ps1 be? Well,
operator=
is documented with this effect:Iterating ps2 will produce decoded segments, so ps1 will end up with
Note how "file.txt" has the escape removed. This behavior is technically correct according to our specification but is this the right thing to do?
The text was updated successfully, but these errors were encountered: