[stringtemplate-interest] Re: cminus.g
Laurent Vaucher
blo.b at infonie.fr
Sat Oct 22 05:24:42 PDT 2005
Well, the way I understand the difference between program, which
returns a value, and declaration, which takes a stringtemplate as a
parameter is the same as between a 'purely functional' function and a
'side-effect' one. The second is used to 'fill' an already existing
object with additional data.
It might be possible to convert the whole thing to a 'purely
functional' style, but I think one point of the article was to show
all the possible approaches with the library. The other possible
explanation is 'purely pragmatic': do the simplest thing that might
possibly work ((c) Ward Cunningham). If one style is simpler to use
in some cases, just use it.
Laurent.
More information about the stringtemplate-interest
mailing list