[Gllug] C++ Templates, Opinions?

Holger Duerer hduerer at gmx.net
Sun Dec 19 20:31:52 UTC 2004


>>>>> "Nix" == Nix  <nix at esperi.org.uk> writes:
  [...]

    Nix> Oh, Alexandescu is *smart*. Policy classes are a *genius* idea.
    Nix> The only problem with template metaprogramming is that because
    Nix> it wasn't actually an original design feature of C++, its
    Nix> syntax is rather baroque and hard to read.

While very true, this statement hides the biggest problem with
templates in today's compilers: If you think the template source code
is difficult to read then you will be completely lost with the error
messages produced when things go wrong.  With current compiler
technology templates are only for writing correct code (the compiler
won't help you much if you write wrong code) -- and we all know how
easy that is...

     Holger

-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list