Re-posted from: https://www.oxinabox.net/2018/10/03/Dispatch,-Traits-and-Metaprogramming-Over-Reflection.html
This is a blog post about about dispatch.
Mostly, single dispatch, though it trivially generalises to multiple dispatch,
because julia is a multiple dispatch language.
This post starts simple, and becomes complex.
- Beginning with, introductory julia skills: dispatch
- continue to intermidate julia skills: traits
- and finishing up with advanced techniques: metaprogramming over reflection
The last of which is kinda evil.