<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Swush</title>
	<atom:link href="http://swush.firefang.net/2009/04/swush/feed/" rel="self" type="application/rss+xml" />
	<link>http://swush.firefang.net/2009/04/swush/</link>
	<description>Swush - the markup language for puny humans</description>
	<lastBuildDate>Mon, 27 Apr 2009 15:29:52 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Omry</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-22</link>
		<dc:creator>Omry</dc:creator>
		<pubDate>Mon, 27 Apr 2009 13:01:28 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-22</guid>
		<description>that&#039;s an api issue:
how do you access elements in a swush file programatically.

that&#039;s a different issue, an in fact I think it&#039;s justifies having a selector language.
I already implemented the dot notation to access elements (check the Swush.select() or the bottom of the &quot;What is swush&quot; page.
I think we should look at xpath for inspiration for more ideas for the selector language, but first we need to stabilize swush itself.

btw: get online on jabber, I can&#039;t see you.</description>
		<content:encoded><![CDATA[<p>that&#8217;s an api issue:<br />
how do you access elements in a swush file programatically.</p>
<p>that&#8217;s a different issue, an in fact I think it&#8217;s justifies having a selector language.<br />
I already implemented the dot notation to access elements (check the Swush.select() or the bottom of the &#8220;What is swush&#8221; page.<br />
I think we should look at xpath for inspiration for more ideas for the selector language, but first we need to stabilize swush itself.</p>
<p>btw: get online on jabber, I can&#8217;t see you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-21</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Mon, 27 Apr 2009 13:00:42 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-21</guid>
		<description>ah, i see, newline is just like any white space. i can see the value of that in case of arrays.</description>
		<content:encoded><![CDATA[<p>ah, i see, newline is just like any white space. i can see the value of that in case of arrays.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-20</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Mon, 27 Apr 2009 12:56:31 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-20</guid>
		<description>and I would suggest another addition to the language:

grp {
key : value
}

is equivalent to 

grp.key : value

from the API i would like to be able to access the values like: cfg[&quot;grp&quot;][&quot;key&quot;] or better cfg[&quot;grp.key&quot;], or, say in python, as cfg.grp.key which somehow makes me want to enforce the dot notation :-)</description>
		<content:encoded><![CDATA[<p>and I would suggest another addition to the language:</p>
<p>grp {<br />
key : value<br />
}</p>
<p>is equivalent to </p>
<p>grp.key : value</p>
<p>from the API i would like to be able to access the values like: cfg["grp"]["key"] or better cfg["grp.key"], or, say in python, as cfg.grp.key which somehow makes me want to enforce the dot notation <img src='http://swush.firefang.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omry</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-19</link>
		<dc:creator>Omry</dc:creator>
		<pubDate>Mon, 27 Apr 2009 12:54:15 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-19</guid>
		<description>swush is not line based, you can have this:
swush {key:value key:value}

or, in the next version:
array [1 2 3]

with your suggestion, the first one will be parsed as:
KEY: key
VALUE: value key:value

currently line breaks are treated as separators and are ignored.
I think that&#039;s the formating flexibility offered by this approach outweigh the benefits of never having to quote a string.

about multiline strings, as I said - your suggestion is good and I`ll see if it can cleanly merged into the swush (but as an addition, not instead of anything else).</description>
		<content:encoded><![CDATA[<p>swush is not line based, you can have this:<br />
swush {key:value key:value}</p>
<p>or, in the next version:<br />
array [1 2 3]</p>
<p>with your suggestion, the first one will be parsed as:<br />
KEY: key<br />
VALUE: value key:value</p>
<p>currently line breaks are treated as separators and are ignored.<br />
I think that&#8217;s the formating flexibility offered by this approach outweigh the benefits of never having to quote a string.</p>
<p>about multiline strings, as I said &#8211; your suggestion is good and I`ll see if it can cleanly merged into the swush (but as an addition, not instead of anything else).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-18</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Mon, 27 Apr 2009 12:41:20 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-18</guid>
		<description>I&#039;m not so sure about &quot;a value&quot;. the language is line based, keys can&#039;t contain spaces, anything after colon is a value barring leading / trailing white space. 

even braces inside a single line value shouldn&#039;t be a problem: if brace (or even colon) is after a colon it&#039;s part of the value, making the following parseable: 

url : http://swush.firefang.net/
title : swush ain&#039;t afraid of no {}

only when brace immediately (bar white space) follows a key does it start a new group. this rule can be extended to allow a different formatting:

grp 
{
   key : value
}

the key to lexer / parser programming will be using states - are we parsing a key, delimiter or value now (or something).

you&#039;ll obviously need string-delimiters for multi-line strings (well, not obviously, you could also escape new lines, but that&#039;s again ugly), but I&#039;m not sure you need quotes for single line strings. May be to escape comment delimiters.</description>
		<content:encoded><![CDATA[<p>I&#8217;m not so sure about &#8220;a value&#8221;. the language is line based, keys can&#8217;t contain spaces, anything after colon is a value barring leading / trailing white space. </p>
<p>even braces inside a single line value shouldn&#8217;t be a problem: if brace (or even colon) is after a colon it&#8217;s part of the value, making the following parseable: </p>
<p>url : <a href="http://swush.firefang.net/" rel="nofollow">http://swush.firefang.net/</a><br />
title : swush ain&#8217;t afraid of no {}</p>
<p>only when brace immediately (bar white space) follows a key does it start a new group. this rule can be extended to allow a different formatting:</p>
<p>grp<br />
{<br />
   key : value<br />
}</p>
<p>the key to lexer / parser programming will be using states &#8211; are we parsing a key, delimiter or value now (or something).</p>
<p>you&#8217;ll obviously need string-delimiters for multi-line strings (well, not obviously, you could also escape new lines, but that&#8217;s again ugly), but I&#8217;m not sure you need quotes for single line strings. May be to escape comment delimiters.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omry</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-17</link>
		<dc:creator>Omry</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:52:07 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-17</guid>
		<description>We discussed something like this last night.
need to think about it, how it interact with normal quoted strings.
you still want:

key : &quot;a value&quot;</description>
		<content:encoded><![CDATA[<p>We discussed something like this last night.<br />
need to think about it, how it interact with normal quoted strings.<br />
you still want:</p>
<p>key : &#8220;a value&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: artm</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-15</link>
		<dc:creator>artm</dc:creator>
		<pubDate>Mon, 27 Apr 2009 11:49:23 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-15</guid>
		<description>escaping quotes with slashes is ugly. starting long string on the (key : &quot;... ) line breaks indenting that might be present in the quoted multi-line string. may be better allow something like:

key : DELIM
string
string
&quot;quoted string&quot;
DELIM

where DELIM is something rare, like &quot;&quot;&quot; (triple quote) or ~~ ? (in the above example the long string doesn&#039;t start / end with empty lines, it only contains lines between the two lines containing DELIM, each content line is \n terminated for consistency)</description>
		<content:encoded><![CDATA[<p>escaping quotes with slashes is ugly. starting long string on the (key : &#8220;&#8230; ) line breaks indenting that might be present in the quoted multi-line string. may be better allow something like:</p>
<p>key : DELIM<br />
string<br />
string<br />
&#8220;quoted string&#8221;<br />
DELIM</p>
<p>where DELIM is something rare, like &#8220;&#8221;" (triple quote) or ~~ ? (in the above example the long string doesn&#8217;t start / end with empty lines, it only contains lines between the two lines containing DELIM, each content line is \n terminated for consistency)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omry</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-10</link>
		<dc:creator>Omry</dc:creator>
		<pubDate>Sun, 26 Apr 2009 18:54:03 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-10</guid>
		<description>Hi Jacques,
Good questions.
1. You use double quotes for complex strings, like:


&lt;blockquote&gt;&quot;this is a very long 
sentence : it have a few
new lines, some {curly} braces and even some \&quot;quotes\&quot;!&quot;
&lt;/blockquote&gt;

note that you need to escape the quotes inside the string by prefixing with a backslash.
in the current version, the returned string will contain the \&quot; instead of &quot;, but I`ll fix it soon.

2. since you can use quotes as I explained, I am not sure it&#039;s a real problem. 
if you disagree please explain.</description>
		<content:encoded><![CDATA[<p>Hi Jacques,<br />
Good questions.<br />
1. You use double quotes for complex strings, like:</p>
<blockquote><p>&#8220;this is a very long<br />
sentence : it have a few<br />
new lines, some {curly} braces and even some \&#8221;quotes\&#8221;!&#8221;
</p></blockquote>
<p>note that you need to escape the quotes inside the string by prefixing with a backslash.<br />
in the current version, the returned string will contain the \&#8221; instead of &#8220;, but I`ll fix it soon.</p>
<p>2. since you can use quotes as I explained, I am not sure it&#8217;s a real problem.<br />
if you disagree please explain.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jacques Lemire</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-9</link>
		<dc:creator>Jacques Lemire</dc:creator>
		<pubDate>Sun, 26 Apr 2009 18:40:26 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-9</guid>
		<description>Remark 1
how do you code/encode long strings, like a long paragraph, with quotes, doubles, and curls

Remark 2.
I find it simple, direct and powerful to be able to write &quot;bare&quot; strings like  format : %t%s
BUT the problem is with languages like C# or even Python where the new formats are like {0:3d}={1:6d}
Notice the colon in the format.</description>
		<content:encoded><![CDATA[<p>Remark 1<br />
how do you code/encode long strings, like a long paragraph, with quotes, doubles, and curls</p>
<p>Remark 2.<br />
I find it simple, direct and powerful to be able to write &#8220;bare&#8221; strings like  format : %t%s<br />
BUT the problem is with languages like C# or even Python where the new formats are like {0:3d}={1:6d}<br />
Notice the colon in the format.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Omry</title>
		<link>http://swush.firefang.net/2009/04/swush/comment-page-1/#comment-8</link>
		<dc:creator>Omry</dc:creator>
		<pubDate>Sun, 26 Apr 2009 17:33:17 +0000</pubDate>
		<guid isPermaLink="false">http://swush.firefang.net/?p=43#comment-8</guid>
		<description>It&#039;s similar, but I didn&#039;t like the syntax of yaml.
there are several differences, one being that scope in swush is not determined by block indentation (like in yaml)</description>
		<content:encoded><![CDATA[<p>It&#8217;s similar, but I didn&#8217;t like the syntax of yaml.<br />
there are several differences, one being that scope in swush is not determined by block indentation (like in yaml)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

