<div>ruz:</div><div><br></div>imho, the new syntax is easier to read. And it actually renders faster in runtime. Of course it&#39;s just shift some jobs to compile time like all those Devel::Declare based modules. Moose.<div>
<br></div><div>I&#39;ve done a very simple benchmark program a few weeks ago:</div><div><br></div><div>&nbsp;&nbsp; &nbsp;<a href="http://gist.github.com/37042">http://gist.github.com/37042</a><br><div><br></div><div>By that time Markapl had only very limited features but the result of benchmarking shows that Markapl is somewhere about 200% faster then TD. I wish it&#39;ll still be that much faster when Markapl becomes almost as feature rich as TD.</div>
<div><br></div><div>However, I don&#39;t know what &quot;problem&quot; does it really solve for TD, actually. Maybe not, since TD is like super solid for a long time. It&#39;s more like a matter of preference. I prefer this syntax &nbsp;much more from the moment that I saw TD and I couldn&#39;t change it to the way I want until now that I&#39;ve learn to play with Devel::Declare.</div>
<div>&nbsp;<br></div><div>As for the concern of maintability, by what I&#39;ve got in the current work progress of integrating Markapl into TD, I&#39;d say there&#39;re probably some decision to make to drop some backward compatibility at some point. Not now, nor it&#39;s coming soon, but having to support all sorts of syntaxes to assign attribute values make the code look horrible.</div>
<div><br><div class="gmail_quote">On Wed, Jan 7, 2009 at 6:56 PM, Ruslan Zakirov <span dir="ltr">&lt;<a href="mailto:ruslan.zakirov@gmail.com">ruslan.zakirov@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
New syntax. I&#39;m afraid such step could lower maintability. What the<br>
point? What will it give? Which problems it solves?<br>
<div><div></div><div class="Wj3C7c"><br>
On Sat, Dec 27, 2008 at 2:55 AM, Kang-min Liu &lt;<a href="mailto:gugod@gugod.org">gugod@gugod.org</a>&gt; wrote:<br>
&gt; Hi, all<br>
&gt;<br>
&gt; Recently I&#39;ve been trying to use Devel::Declare to re-implement<br>
&gt; Template::Declare for this very fancy syntax:<br>
&gt;<br>
&gt; &nbsp; &nbsp; div(id =&gt; &quot;salute&quot;) { &quot;Hiya&quot; }<br>
&gt;<br>
&gt; And it worked very fine, big success. I&#39;m very impressed by how much<br>
&gt; it can be done with<br>
&gt; Devel::Declare and B::Hook* modules. Kudos to rafl++<br>
&gt;<br>
&gt; I released the implementation under the name &quot;Markapl&quot; (Mark up as<br>
&gt; Perl) on CPAN few days ago.<br>
&gt; The Markapl repository is on Github: &nbsp;<a href="http://github.com/gugod/markapl/tree/master" target="_blank">http://github.com/gugod/markapl/tree/master</a><br>
&gt;<br>
&gt; And since obra requested, I&#39;m currently integrating it into<br>
&gt; Template::Declare. Several basic parts are<br>
&gt; all ported, so statement like these are all working now:<br>
&gt;<br>
&gt; &nbsp; &nbsp; div(id =&gt; &quot;salute&quot;) { &quot;Hiya&quot; }<br>
&gt; &nbsp; &nbsp; div(&quot;#salute&quot;) { &quot;Hiya&quot; }<br>
&gt; &nbsp; &nbsp; div(&quot;.salute&quot;) { &quot;Hiya&quot; }<br>
&gt; &nbsp; &nbsp; div(&quot;#salute.box&quot;) { &quot;Hiya&quot; }<br>
&gt;<br>
&gt; And it&#39;s still backward compatible:<br>
&gt;<br>
&gt; &nbsp; &nbsp; with(id =&gt; &quot;salute&quot;), div { &quot;Hiya&quot; }<br>
&gt; &nbsp; &nbsp; div { attr { id =&gt; &quot;salute&quot;} outs &quot;Hiya&quot; }<br>
&gt;<br>
&gt; The development is on &quot;markapl-syntax&quot; branch of Template-Declare<br>
&gt; repository, the new code passes<br>
&gt; about 60% of tests now. So please take a look, give me some thoughts<br>
&gt; and may patches. It&#39;s all welcome. :)<br>
&gt;<br>
&gt; btw, I&#39;ve just done a tool Markpl::FromHTML (on CPAN now) that<br>
&gt; currently convert<br>
&gt; simple HTML to Markapl. This can be a pretty handy tool when working<br>
&gt; with HTML-capable visual designers. :)<br>
&gt;<br>
&gt; Cheers,<br>
&gt; Kang-min Liu<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; jifty-devel mailing list<br>
&gt; <a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
&gt; <a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
&gt;<br>
<font color="#888888"><br>
<br>
<br>
--<br>
Best regards, Ruslan.<br>
_______________________________________________<br>
jifty-devel mailing list<br>
<a href="mailto:jifty-devel@lists.jifty.org">jifty-devel@lists.jifty.org</a><br>
<a href="http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel" target="_blank">http://lists.jifty.org/cgi-bin/mailman/listinfo/jifty-devel</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Kang-min Liu<br>
</div></div>