I was asked what was the current status of the differences between,
magic(obj::Any) = zero(typeof(obj))
magic(obj::T) where T = zero(T)
I believe in 0.6 there were some issues being worked out with performance degradation using
where T, but I am not aware of the current status. I usually use
:: and leave
T when it is absolutely necessary.