Skip to content

Commit d4068a7

Browse files
Update README.md
1 parent c9622ad commit d4068a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ development.
8181
- AFArrays
8282
- MultiScaleArrays
8383
- LabelledArrays
84+
85+
## Breaking Release Notes
86+
87+
2.0: Changed the default of `ismutable(array::AbstractArray) = true`. We previously defaulted to
88+
`Base.@pure ismutable(array::AbstractArray) = typeof(array).mutable`, but there are a lot of cases
89+
where this tends to not work out in a way one would expect. For example, if you put a normal array
90+
into an immutable struct that adds more information to it, this is considered immutable, even if
91+
all of the `setindex!` methods work (by forwarding to the mutable array). Thus it seems safer to just
92+
always assume mutability is standard for an array, and allow arrays to opt-out.

0 commit comments

Comments
 (0)