[stringtemplate-interest] who uses regions?
Robert Clark
robert.clark at quest.com
Thu Jun 30 12:01:17 PDT 2011
On June 30, 2011 2:55:35 PM Terence Parr wrote:
> they are driving me nuts in STv4 implementation. i'm not even sure what
> they mean anymore with subdirs and /a/b/c/d style references with
> inheritance mixed in.
>
> I don't use anymore myself. I released I needed them in ANTLR v3 code
> gen due to forcing too much of logic into templates. v4 does all
> thinking in code and constructs internal model and then just makes
> templates and fills and renders.
>
> i'd love to eject regions but not if people use. I guess ANTLR 3.4
> needs them...hmm...
I'm currently using regions with 4.0.something to allow customizations of
templates under special conditions. I suppose I could do the same thing
with a mix of references and inheritance, but up until now I've been too
lazy to learn how to do so.
If the same functionality can be achieved without regions, then I'd have no
problem re-tweaking my templates to get rid of them. Especially if they are
making maintenance harder.
- Rob
More information about the stringtemplate-interest
mailing list