Skip to content

Commit

Permalink
Remove ismutablestruct(T::Type)
Browse files Browse the repository at this point in the history
It's hard to invoke this path.  `setproperty!!(Vararg, :a, 2)` works
but that sounds too contrived.
  • Loading branch information
tkf committed Jul 2, 2019
1 parent 19455c6 commit cf1e88f
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/core.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ ismutable(::Type{<:AbstractString}) = false
ismutablestruct(x) = ismutablestruct(typeof(x))
Base.@pure ismutablestruct(T::DataType) = T.mutable
ismutablestruct(::Type{<:NamedTuple}) = false
ismutablestruct(T::Type) = error("mutability unknown for type $T") # maybe `false`?

# trymutate(::typeof(push!)) = push!!
# trymutate(::typeof(append!)) = append!!

0 comments on commit cf1e88f

Please sign in to comment.