[stringtemplate-interest] another tweak
Zenaan Harkness
zen at freedbms.net
Sat Jul 11 17:59:32 PDT 2009
On Sat, Jul 11, 2009 at 05:06:03PM -0700, Terence Parr wrote:
> On Jul 11, 2009, at 5:05 PM, Zenaan Harkness wrote:
>> On Sat, Jul 11, 2009 at 01:13:10PM -0700, Terence Parr wrote:
>>> changes for today:
>>>
>>> 07-11-2009
>>>
>>> o If default arg is a template with single expression wrapped in
>>> parens, x={<(...)>},
>>> then eval to string rather than setting x to the template for later
>>> eval. Useful
>>> in rare cases where the expression can change value when you read
>>> it, such as
>>> accessing time value or random number generator object.
>>
>> That's cool. The benefits of writing a book - you find real-world
>> usage
>> scenarios that require re-thinks/ features.
>
> Yeah, it's too bad I'm rebuilding ST starting in a month or two without a
> book concurrently ;)
<cough>StringTemplate Specification<cough>
<advocate>The small YAML community (perhaps not so small any more) is a
great example of production of a specification, and the benefits
thereof. <append 'repetition of previous links etc'/></>
:)
Regards
Zen
--
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