When implementing a function (overloading getindex to be precise) to allow : as an argument I expected that I would need to do the following:
funA(_::Colon) = println("funA")
but the following works as well
funB(:) = println("funB")
Why? When I type ?: in the REPL I find that : is an instance of Colon. This
is unexpected for me, it does not seem to be the same as "Value Types"? Can
somebody clarify for me what is happening?
Many thanks,
Christoph
