3 ms·
I discussed this issue at http://softwaresimply.blogspot.com/2008/03/to-template-or-not-to-template.html http://softwaresimply.blogspot.com/2008/03/to-template-
by mightybyte 18y ago
I discussed this issue at http://softwaresimply.blogspot.com/2008/03/to-template-or-not-to-template.html http://softwaresimply.blogspot.com/2008/03/to-template-or-no....
It seems like people tend to prefer templates, however I'm not yet convinced. I think there are good arguments for language-generated code, especially with a language that is powerful enough. HSP in Haskell provides some interesting possibilities here (http://www.cs.chalmers.se/~d00nibro/hsp/thesis.pdf http://www.cs.chalmers.se/~d00nibro/hsp/thesis.pdf). Text.XHtml is another Haskell library that does this (http://www.haskell.org/ghc/dist/current/docs/libraries/xhtml/Text-XHtml-Strict.html http://www.haskell.org/ghc/dist/current/docs/libraries/xhtml...).