Singleton types vs. instances as type parameters

This is a very interesting thread. I too have used both, oscillating between the two.

I believe the place where this advice was dispenced was begins in this point of this github thread: https://github.com/JuliaLang/julia/pull/9452#issuecomment-68528662

I have actually come full circle since then (at least once) - and now I believe instances are more powerful and flexible. for traits and singletons. In fact, that discussion seems to predate @pure - it might be worth reviewing Val(x)::Val{x} in this light (that’s easy syntax for both the caller and callee).

Thank you @rdeits for showing the typeassert trick - that’s very neat, I usually do these type parameter assertions in a cluncky way.