[stringtemplate-interest] auto-flattening lists

Terence Parr parrt at cs.usfca.edu
Mon Nov 12 14:05:22 PST 2007


On Nov 9, 2007, at 7:31 PM, John Snyders wrote:

>
>>> Thanks for entering a bug for this.
>>>     Even though |$table(t=[ [ "a", "b" ], [ "c", "d" ] ])$| is  
>>> allowed it gets flattened.
>>>
>>> The bug isn't explicit about what the expected fix is. Perhaps it  
>>> is obvious but I'll say it anyway.
>>> My expectation is that the t argument to the table template be  
>>> set to a list which contains two elements
>>> the first being a list of elements "a" and "b" and the second  
>>> being a list of elements "c" and "d".
>>
>> Yes, makes sense when you use a list literal inside the  
>> template...i never do that.  is that common?
> We won't know until it works as expected ;-)

hhah hahah!

> It was a long time ago but I think I did try to do something like  
> that once.

Hmm...ok, we can add to future list.

I think I'm ready with 3.1 :)

Ter


More information about the stringtemplate-interest mailing list