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


#1

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?


#2

No.

Are you going to use T?


#3

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