Should I use type parameters or abstract arguments in a function?

I find myself faced with a decision quite often to either use f{T<:Real}(a::T) or f(a::Real), using Real as an example. Is there any performance difference between the 2? Which one is more preferred?

No.

Are you going to use T?

2 Likes

I see, so only when T is going to be used.