3 ms·
> C++ templates and just allow whatever by textual substitution The Julia approach is indeed elegant. An in-between position taken by F# is statistically resol
by Vetch 5y ago
> C++ templates and just allow whatever by textual substitution
The Julia approach is indeed elegant. An in-between position taken by F# is statistically resolved type parameters, where type safety is maintained and semantics largely preserved by constraints on members. It's a pain to write but trivial to consume though errors can be obstruse. More type level flexibility on the CLR (which seems to be planned) will further improve things when it comes to generic programming.