[stringtemplate-interest] v4 ST

Gerald Rosenberg gerald at certiv.net
Tue Oct 6 17:51:12 PDT 2009


At 04:58 PM 10/6/2009, Terence Parr wrote:
>Actually
>
>st.add("name, "parrt");
>
>might not be as clear as
>
>st.put("name, "parrt");
>
>but will people think it means "replace" instead of add?  I kind of
>like put
>
>what about
>
>st.attr("name, "parrt");

Have to say that I liked "inject" on first impression.  Add, set and 
put all suggest that the data is potentially still accessible, as if 
the template is just a list or map in the model.  Inject reflects the 
conceptual separation: once injected, the template has control.

The term "associate" might be more accurate, but it is weak and 
long.  The term "attr" is less accurate, as the parameters are 
attribute and value. Tuple?



More information about the stringtemplate-interest mailing list