[stringtemplate-interest] "\n" goes away

Zenaan Harkness zen at freedbms.net
Tue Oct 13 17:53:47 PDT 2009


On Tue, Oct 13, 2009 at 04:14:23PM -0700, Terence Parr wrote:
> Hi, i allowed
> 
> <expr; separator="\n">
> 
> previously to mean newline separator, but that makes no sense.  "\n"  
> is a 2 char sequence just like it is in between template expressions.   
> But making you do
> 
> <expr; separator={<\n>}>
> 
> is a bit long.  It's *always* comma or newline. seems we should make  
> it easier to say.  we use it constantly.
> 
> As far as i can tell, we have these options: wrap, anchor, null,  
> separator, format.  Is there a better way to do those too?  How would  
> we do this differently?
> 
> <values; anchor, wrap="\n", separator=",">

Good question. Would be really nice to simplify.

I've often thought abbreviation "sep" was intuitive, to me (for
'separator' of course).

-- 
Homepage: www.SoulSound.net -- Free Australia: www.UPMART.org
Please respect the confidentiality of this email as sensibly warranted.


More information about the stringtemplate-interest mailing list