Makie (and Julia) do not automatically typecast obvious numerical representations

This is pretty fundamental to how dispatch works in Julia and isn’t something that can really be changed. If you write f(x::Int), you are telling the language that you only want this method to be called for Int arguments — the argument types act as a kind of filter.

Definitely library authors should try to accept the widest applicable type signatures in their APIs, but you will typically still have to pay more attention to types than in, e.g. Python.

If there is a specific set of functions in Makie that you think should accept Vector{Any}, you can file an issue there, but this isn’t something that’s going to change at the language level.

8 Likes