-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
make IOBuffer(array) writable by default #24430
Conversation
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.
This looks inconsistent to me
Why is this inconsistent? open
is also usually read-only by default.
One may expect
|
related #24526 |
Bump – can we make some progress here? @JeffBezanson has already approved so my merge finger is getting itchy... |
Read-only seems like a safer default here. (Note that most of the writable usages in Base employ the undocumented Most of the cases where you pass a writable array seem to be just cases where you want a size hint, and it would be better in this case to actually have a Now that keywords are fast, can we just change the |
From triage: this should behave like |
IOBuffer(UInt8[])
is not writable by default whileIOBuffer()
is. This looks inconsistent to me, and so I'd like to makeIOBuffer(array)
writable by default.IOBuffer(string)
is kept as-is because making it writable may result in an expected behavior.