On Sunday, August 21, 2016 at 12:59:12 AM UTC-4, Jameson wrote: > > that should be: > isimmutable(T::DataType) = !T.mutable > > You could add more cases for the other Types (Union, TypeVar, and > TypeConstructor), although whether you need that in practice would be > determined by your use case. Tuple isn't a special case type since mid-2015 > (during v0.4-dev) >
The implementation of isimmutable in Base should probably be updated then. https://github.com/JuliaLang/julia/blob/c74b7d0161b85ea78cbe21609fe37da3b72d39a1/base/reflection.jl#L118
