-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
strings"Strings!""Strings!"
Description
I just spent quite a long time figuring out a bug caused by the fact that takebuf_array resets the IOBuffer if it is writeable. This isn't documented in the help string, and I think it would be more consistent with other "dangerous" operators to add a ! to the name (so people think to look for mutation as the source of problems).
Also – this seems like a big change in behaviour for such a subtle change in the object (it's not obvious to me that IOBuffer("...") and print(IOBuffer(), "...") should have different semantics). It might be nice to split into takebuf_string and takebuf_string! to avoid that.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
strings"Strings!""Strings!"