Skip to content

Commit ddfc728

Browse files
author
Chris Foster
committed
Deprecate ImmutableArrays and FixedSizeArrays compatibility interfaces
People should use the StaticArrays APIs directly. If there's anything useful left here we should fold it into the main API, or move it to other packages where it fits more neatly.
1 parent c946134 commit ddfc728

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/FixedSizeArrays.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ etc, using StaticArrays as a backend.
66
The type definitions are not "perfect" matches because the type parameters are
77
different. However, it should cover common method signatures and constructors.
88
"""
9-
module FixedSizeArrays
9+
module FixedSizeArraysWillBeRemoved
1010

1111
using ..StaticArrays
1212

@@ -187,3 +187,6 @@ end
187187
@fixed_vector Point StaticVector
188188

189189
end
190+
191+
Base.@deprecate_binding FixedSizeArrays FixedSizeArraysWillBeRemoved #=
192+
=# false "StaticArrays.FixedSizeArrays is deprecated. Use StaticArrays directly."

src/ImmutableArrays.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module ImmutableArrays
1+
module ImmutableArraysWillBeRemoved
22

33
using ..StaticArrays
44

@@ -34,3 +34,6 @@ export Vector1, Vector2, Vector3, Vector4,
3434
Matrix4x1, Matrix4x2, Matrix4x3, Matrix4x4
3535

3636
end # module
37+
38+
Base.@deprecate_binding ImmutableArrays ImmutableArraysWillBeRemoved #=
39+
=# false "StaticArrays.ImmutableArrays is deprecated. Use StaticArrays directly."

0 commit comments

Comments
 (0)