[stringtemplate-interest] maps, length, wrapping
Kay Roepke
kroepke at dolphin-services.de
Mon Jan 30 02:36:58 PST 2006
On 29. Jan 2006, at 18:13 Uhr, Terence Parr wrote:
> Nice ideas about impl. However, I think it will have to be done in
> the output writer to be really affective. It seems like a global
> property to me (though individual templates might be able to give a
> length). This way, the thing that actual spits stuff out can do
> the check (for example, this is how the auto indent works). Make
> sense?
Well, I thought about that, too. If would be nice to have this at a
global level, but that again introduces the problem Laurent
mentionened, about
having to know about the syntax to do it right.
I'd rather use this as a means to break up long initialization
vectors for arrays and breaking up long parameter lists, though I
don't currently
have this problem, I admit. I just jumped at it, because I thought it
would be a nice excuse to take a look at the ST innards ;)
-k
More information about the stringtemplate-interest
mailing list