You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is to be mutable by default, as most simple use cases do not use Bytes as a type system (me guessing) - so you have the performance benefit without thinking about it. If, on the other hand, Bytes is used in APIs it would make sense to offer immutable types so an API may choose to protect it's internal arrays.
Im in the middle of the rewrite, but it is sometimes not easy to support both while having the some out-facing API.
Currently the default type is described as "immutable" but in realty it's just a "copy-on-write" instance.
It would make more sense if the default instance is mutable, with wrapper to make it immutable.
The text was updated successfully, but these errors were encountered: