You could also define:

    test(s::Symbol) = ....whatever....
    test(s::Any) = test(convert(Symbol, s))

which will accept any type that can be converted to Symbol, and throw a 
MethodError otherwise.   If you want to be a little more restrictive, you 
can change Any to Union(String, other types, ...).

Reply via email to