-
Notifications
You must be signed in to change notification settings - Fork 101
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
For each for strings #110
Comments
This is IMO a pretty good reason for basing strings on lists, even if that's a little strange otherwise. |
I also just found replace on a byte sequence (although that could also end up being a string, if we do decoding earlier on). |
But again, we should settle mutable/immutable first: #91. |
As I argue in https://www.xanthir.com/b4wJ1, strings shouldn't be iterable by default. Not all of the arguments there apply to Infra, but the second one (no right way to iterate a string) absolutely does. I think it would be fine to define |
URL could use this, to quote from the source:
How we're going to do this depends on the mutable/immutable conversation and whether strings are like lists or have their own list-like generic.
The text was updated successfully, but these errors were encountered: