-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
feat!: add support for string slices #1044
Conversation
c5b77d2
to
0b8ca60
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM -- thanks for taking the time to do this!
Also, we should update this section of the documentation with this new distinction between string slices and arrays. Can be done in this PR or follow-up work.
How does this interact with/nullify #1042? |
I was also wondering about this. It seems like your work on #1042 is for a feature that already exists in the language. And what @IGI-111 is working on is for a future feature. Not sure how these two features interact in the compiler, or if one replaces the other. @IGI-111, let us know your thoughts. |
Having looked at it it doesn't look like it would conflict at all. This is for a new Sway feature and that other PR is for the existing dynamic So yeah I don't think there's conflict here, not even duplication of efforts per se. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
very neat, thanks a lot!
Add support for `str` in prevision for FuelLabs/sway#4778
f86d297
to
b9db3ac
Compare
Add support for
str
in prevision for FuelLabs/sway#4778Checklist