[stringtemplate-interest] Use case supported by ST?

Terence Parr parrt at cs.usfca.edu
Sun Feb 7 11:59:27 PST 2010


On Feb 7, 2010, at 4:02 AM, Ronald Muller wrote:

> Thanks Joshua.
> 
> I also came to the conclusion I have to modify my domain class. I was looking for something more simple. Calling Collection#contains() has no side effects, so i expected it to be available in ST.

Well, ST requires no side effects but that doesn't mean that every side effect free function is okay. In particular, I decided that being able to send an arbitrary parameter to the model entangles the model and view. for example, you could say $db.sql("drop table Users")$

Ter


More information about the stringtemplate-interest mailing list