On Tuesday, February 17, 2015 at 10:42:01 AM UTC-6, Abel Siqueira wrote:
>
>  What Tim was trying to point out is that `isa` a builtin, and many things
> depend on it being able to differentiate a scalar from an array.
>
> However, if you, in your code, wants to ignore this, you can define
> a function that does what you want, and it won't break anything because
> only your code depends on it.
>

Before you get too into defining your own stuff--eltype() is already 
sufficiently generic:

julia> eltype([1.0]) == Float64
true

julia> eltype(1.0) == Float64
true

Reply via email to