-
Notifications
You must be signed in to change notification settings - Fork 2.6k
[stdlib] Change os.env
functions to use StringSlice
#4305
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
Conversation
env args are mutable, so it's probably best that either the runtime makes a copy at the start of the program or that we do make a copy here due to hazards around C libraries modifying them. |
@owenhilyard The |
Actually, do we want to remove |
I've wanted to deprecate |
That's probably fine so long as we provide locking on the Mojo side, since all of the C library functions are thread unsafe. |
Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
Co-authored-by: soraros <[email protected]> Signed-off-by: martinvuyk <[email protected]>
Signed-off-by: martinvuyk <[email protected]>
4c694f2
to
d0f7b8d
Compare
Change
os.env
functions to useStringSlice