tag:blogger.com,1999:blog-8870458677906929699.post5750052633532531716..comments2023-10-24T04:22:28.938-07:00Comments on Henry Luo's Blog on Candle: The Examples Speak For ThemselvesHenry Luohttp://www.blogger.com/profile/10128725727996307107noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-8870458677906929699.post-6170557189040581272011-12-05T20:45:50.786-08:002011-12-05T20:45:50.786-08:00I'm glad we have consensus now. :-)I'm glad we have consensus now. :-)Henry Luohttps://www.blogger.com/profile/10128725727996307107noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-83331992141735685482011-12-05T16:12:36.430-08:002011-12-05T16:12:36.430-08:00Excuse me; I wrote Lua when I meant Candle. And I ...Excuse me; I wrote Lua when I meant Candle. And I made a mistake in the "Hello" part. <br />Anyway, I really like the Candle Object Notation; I would prefer it much above the embedded XML in Scala. <br />Maybe you should keep the outer "<" and ">" brackets so that the Scala compiler can easily parse it.André van Delfthttps://www.blogger.com/profile/04035752434660182175noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-59409017792348040742011-12-04T17:41:43.847-08:002011-12-04T17:41:43.847-08:00You example in Candle element notation:
<span i...You example in Candle element notation:<br /><span id={id}><strong>"He"<italic>"ll"</italic>"o,"</strong>" World!"</span><br />Yes, it is very close to XML except that string are quoted.<br /><br />In Candle object notation:<br />span {id={id} strong{"He" italic{"ll"} "o,"} " World!"}<br />Very close to your Lua version.<br /><br />The element notation can be easily embedded in Scala. The object notation probably requires more change to Scala language.<br /><br />Another hybrid way might be as you used in your Lua example. Keep the outer most node in element notation, it serves as the delimiter to separate the markup from normal Scala script. Inside the element, object notation can be used for its terseness.Henry Luohttps://www.blogger.com/profile/10128725727996307107noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-11213522667291822022011-12-03T15:10:56.548-08:002011-12-03T15:10:56.548-08:00Henry, the Cancle Markup that you present for Scal...Henry, the Cancle Markup that you present for Scala disappoints me. It is basically the same as the old XML, including the repetition of the tag names at the closing tags.<br /><br />Let's make the Hello World XML sample slightly more complicated: the "ll" should be italic. The Scala version would then be<br /><br /> <span id={id}><strong>He<italic>ll</italic>o,</strong> World!</span><br /><br />I would hope a Lua version would be something like<br /><span { id = {id} strong {"Hello" italic {"ll"}"o, "} "World!" }><br /><br />What do you think?André van Delfthttps://www.blogger.com/profile/04035752434660182175noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-68852992728250481112011-12-02T07:39:09.642-08:002011-12-02T07:39:09.642-08:00Projects like (http://anti-xml.org/) shows how sca...Projects like (http://anti-xml.org/) shows how scala.xml package can be replaced. To support Candle Markup in Scala. A similar package needs to be developed.Henry Luohttps://www.blogger.com/profile/10128725727996307107noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-12951840199055327102011-12-02T07:25:30.457-08:002011-12-02T07:25:30.457-08:00Below is a simple XML sample that I take from some...Below is a simple XML sample that I take from some Scala tutorial:<br />def makeXML(id: String) = <span id={id}><strong>Hello,</strong> World!</span><br /><br />When converted into Candle Markup, it would look like:<br />def makeXML(id: String) = <span id={id}><strong>"Hello,"</strong> "World!" </span><br /><br />Generally, for Scale to support Candle Markup, it has to be enhanced to support parsing Candle's syntax. It'll also need to introduce some option for user to specify whether the embedded markup is in XML syntax or in Candle syntax.Henry Luohttps://www.blogger.com/profile/10128725727996307107noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-47162445280193897872011-11-29T16:16:41.831-08:002011-11-29T16:16:41.831-08:00How would Candle fit as an alternative for the cur...How would Candle fit as an alternative for the current syntactic XML support in Scala? Could you show what it would look like?André van Delfthttps://www.blogger.com/profile/04035752434660182175noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-78081521430111544552011-11-22T20:46:30.292-08:002011-11-22T20:46:30.292-08:00To be very frankly, YES, currently there's no ...To be very frankly, YES, currently there's no organisation or institution behind Candle. It's very much my personal effort.<br />But the biggest institution Internet, and the biggest organization OSS is behind me. :-)<br />Yes, I agree that moving forward, Candle needs some kind of endorsement by some standards body. IEFT RFC is one option.Henry Luohttps://www.blogger.com/profile/10128725727996307107noreply@blogger.comtag:blogger.com,1999:blog-8870458677906929699.post-32995876440869052572011-11-21T14:05:53.200-08:002011-11-21T14:05:53.200-08:00You seem to be doing some incredible work here.
I&...You seem to be doing some incredible work here.<br />I'm curious, there seems to be no organisation or institution behind you, is that correct?<br />You also need adoption. Do you have a sense of how or who in this regard?Anonymoushttps://www.blogger.com/profile/14276724887861380619noreply@blogger.com