On Sunday, November 17, 2013 11:29:30 AM UTC+1, Cristóvão Duarte Sousa wrote: > > > It seems to me, who knows nothing of computer science, that in fact Julia > has in fact a powerful multiple dispatch system (though only on types not > on values) >
Multiple dispatch is based on the types of the function parameters. It's similar to function overloading in C++, except that function overloading creates a static link at compile time based on the types the variables are declared. Function overloading, in short, matches the highest superclass, while pattern matching matches the lowest subclass. If you want more advanced matching systems than multiple dispatch, you should look at pattern matching. There's a Julia package under development to add pattern matching capabilities to Julia: https://github.com/kmsquire/Match.jl -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
