In the last 0.5 nights of Julia, I began to notice type parameters named ANY , with restrictions on ANY subtypes. Of course, it is always true, since all types are subtypes of ANY
For example:
serialize(s::SerializationState, x::ANY<:Any) at serialize.jl:468 show(io::IO, x::ANY<:Any) at show.jl:85 methods(f::ANY<:Any) at reflection.jl:258 methods(f::ANY<:Any, t::ANY<:Any) at reflection.jl:247
So what's going on? Is this some kind of trick to get the compiler to generate specialized functions because it has JITs?
generics types jit julia-lang
Lyndon white
source share