[nem-en] Macros and syntax extensions.
Kamil Skalski
kamil.skalski at gmail.com
Mon Apr 30 19:07:57 CEST 2007
Sure, I think that $-string is good for one line formatting of text. I
would like to have a way to reuse existing StringBuilder there, so I
could e.g. do:
foreach (x in xs)
acc << $"insert into $(x.table) ($(x.colums) ) values ($(x.values));";
Is StringTemplate something similar to ASP/JSP/Ruby notation for
building web pages?
Like:
<p>
<b><%= name %></b> : <%= val %>
</p>
It would be great if you paste some example of using StringTemplate in
this context and in contex mentioned at the beginning of this thread.
What is your vision of integrating it with Nemerle?
2007/4/30, vc <vc at rsdn.ru>:
> > I think the best would be the improved $-string, which could take
> > existing StringBuilder instead of creating new one. Some smart syntax
> > should be invented for this.
>
> We considered it, but reject this decision.
>
> 1. It's decision not allow override templates.
> 2. We have not found good syntax.
> 3. Templates should be recursive and refer one to another (they should have
> name and should be callable).
>
> We will be use $-string like syntax, but StringTemplate > $-string and can't
> be completely emulated by $-string.
>
> Vlad
>
>
> _______________________________________________
> https://nemerle.org/mailman/listinfo/devel-en
>
--
Kamil Skalski
http://nazgul.omega.pl
More information about the devel-en
mailing list