Are there functional or performance differences between
myfunction(x::Real)
, andmyfunction(x::T) where {T<:Real}
?
In this case, Real
is an abstract type which obviously has concrete subtypes like Float64
and Int
.
Are there reasons to prefer one versus the other?