Thu, 21 Oct 2010 16:51:03 -0700, Jonathan M Davis wrote: > Now, as I said, C++ and D are the only languages I know of which use > templates. That doesn't mean that other languages do not. Looking at the > wikipedia page on template metaprogramming, it lists other languages > such as Eiffel and ML, so presumably those languages have templates of > some kind.
I'm not aware of templates in Eiffel or ML, but the WP article also mentioned Haskell (which you nimbly left out of the list) which indeed has been extended to support templates in Template Haskell. There are several similar kind of languages, e.g. MetaOCaml. The original Template Haskell paper lists some of these.