[stringtemplate-interest] v4 ST

Terence Parr parrt at cs.usfca.edu
Thu Oct 8 11:24:16 PDT 2009


yeah, push ain't no good due to stack ref.
Ter
On Oct 8, 2009, at 10:29 AM, Graham Wideman wrote:

> At 10/8/2009 09:46 AM, Terence Parr wrote:
>> ha! laugh if you will but ST.push("ter", "out the airlock") ain't a
>> bad function name. actually i like push.
>
> I hope this is Ter pulling our legs!
>
> If it's not, then I challenge supporters of "push" to come up with  
> common programming uses of that term that *don't* mean adding data  
> to a *stack*, with its implication that the data then becomes  
> accessible primarily by popping, maybe by position into the stack (a  
> la stack frame) and specifically *not* by name.
>
> Ie: this function is supposed to place data at the disposal of the  
> ST, where it can later be referred to by the template text *by  
> name*, and, if needed, read back by the caller app *by name*.
>
> So "push", if customarily used in connection with stacks, seems  
> pretty at odds with this.
>
> -- Graham
> _______________________________________________
> stringtemplate-interest mailing list
> stringtemplate-interest at antlr.org
> http://www.antlr.org/mailman/listinfo/stringtemplate-interest



More information about the stringtemplate-interest mailing list