-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Add sugar to simplify mutable function arguments #3488
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
Comments
+1 |
I've stubbed my toe on this as well. |
I started tagging some of the places in the code where this would be useful with |
+1 |
I am working on this. |
Fixed: 54344c2 |
Can places with FIXME be fixed, or does that require a snapshot? |
@sanxiyn Yes, that will require a snapshot, because it has to be possible to compile the libraries with the stage0 compiler (the existing snapshot). But we are going to make a snapshot soon. |
os_str: comment clarification and typo fix
While it's pretty easy to write a function that makes an argument mutable:
It'd be nice to save a line here and there to add some sugar to express an argument is directly mutable, with something like:
The text was updated successfully, but these errors were encountered: