9rnsr/phobos — comment on commit 713e174ca5b6af8fe9796af1165a398a90b516ee
File:  line 0
By andralex:

TypeDef is an attractive name because it is linked to the old typedef keyword. I think, however, that a better name for it is CloneType because that's what it does.

Also, a feature request: we need a third argument, a string called "cookie" defaulted to null. This is because we may need several clones for the same type. Consider we want to e.g. operate with dollars and yen:

alias TypeDef!(double, 0.0, "dollar") Dollar;
alias TypeDef!(double, 0.0, "yen") Yen;

From then on, Dollar and Yen are entirely distinct types. That's not possible without the cookie.