<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.1-alpha2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Python and trailing commas</title>
	<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/</link>
	<description>don't you worry about blank, let me worry about blank</description>
	<pubDate>Tue, 06 Jan 2009 19:48:52 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1-alpha2</generator>

	<item>
		<title>by: b3gl</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-14055</link>
		<pubDate>Thu, 02 Aug 2007 21:45:07 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-14055</guid>
					<description>Works fine in Ruby:

x = {
  &quot;a&quot; =&amp;#62; 1,
  &quot;b&quot; =&amp;#62; 2,
  &quot;c&quot; =&amp;#62; 3,     #comment
}</description>
		<content:encoded><![CDATA[<p>Works fine in Ruby:</p>
<p>x = {<br />
  &#8220;a&#8221; =&gt; 1,<br />
  &#8220;b&#8221; =&gt; 2,<br />
  &#8220;c&#8221; =&gt; 3,     #comment<br />
}
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Stephen</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13916</link>
		<pubDate>Mon, 30 Jul 2007 14:09:34 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13916</guid>
					<description>You can do this in Perl, too.</description>
		<content:encoded><![CDATA[<p>You can do this in Perl, too.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: PatrickQG</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13911</link>
		<pubDate>Mon, 30 Jul 2007 09:23:57 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13911</guid>
					<description>You can do that in javascript, except one browser (cough) then gives you a null &quot;last&quot; entry in the array. Of course sometimes a &quot;trailing&quot; comma cause other browsers to just get confused, so it's best not. 

As to ending up with hard-to-track bugs... I fail to see how this syntax could lead to them. If your language supports it, why would it lead to bugs?</description>
		<content:encoded><![CDATA[<p>You can do that in javascript, except one browser (cough) then gives you a null &#8220;last&#8221; entry in the array. Of course sometimes a &#8220;trailing&#8221; comma cause other browsers to just get confused, so it&#8217;s best not. </p>
<p>As to ending up with hard-to-track bugs&#8230; I fail to see how this syntax could lead to them. If your language supports it, why would it lead to bugs?
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Pete</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13907</link>
		<pubDate>Mon, 30 Jul 2007 07:47:09 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13907</guid>
					<description>You can do it in most languages and it will result in a warning.  This is better than letting it go silently, as it could be indicative of an error -- a mistype or copy &amp;#38; paste problem, for example.

Laziness is not practicality.  Especially not if it makes it easier to end up with hard-to-track bugs.</description>
		<content:encoded><![CDATA[<p>You can do it in most languages and it will result in a warning.  This is better than letting it go silently, as it could be indicative of an error &#8212; a mistype or copy &amp; paste problem, for example.</p>
<p>Laziness is not practicality.  Especially not if it makes it easier to end up with hard-to-track bugs.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Pete</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13906</link>
		<pubDate>Mon, 30 Jul 2007 07:46:21 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13906</guid>
					<description>You can do it in most languages and it will result in a warning.  This is better than letting it go silently, as it could be indicative of an error -- a mistype or copy &amp;#38; paste problem, for example.</description>
		<content:encoded><![CDATA[<p>You can do it in most languages and it will result in a warning.  This is better than letting it go silently, as it could be indicative of an error &#8212; a mistype or copy &amp; paste problem, for example.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ross</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13905</link>
		<pubDate>Mon, 30 Jul 2007 07:32:54 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13905</guid>
					<description>You can add trailing commas in array defs in C, and C#, and I am fairly sure I remember this being true of Java as well.

I always thought it was to make it easier for code-generators as they would never need to worry about the trailing comma.</description>
		<content:encoded><![CDATA[<p>You can add trailing commas in array defs in C, and C#, and I am fairly sure I remember this being true of Java as well.</p>
<p>I always thought it was to make it easier for code-generators as they would never need to worry about the trailing comma.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Ankur</title>
		<link>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13904</link>
		<pubDate>Mon, 30 Jul 2007 07:27:24 +0000</pubDate>
		<guid>http://www.stuffonfire.com/2007/07/30/python-and-trailing-commas/#comment-13904</guid>
					<description>I think it's the same in PHP, although I hardly ever leave a trailing comma deliberately. You're right, though - it is a little tiresome to shuffle commas around when rearranging arrays.</description>
		<content:encoded><![CDATA[<p>I think it&#8217;s the same in PHP, although I hardly ever leave a trailing comma deliberately. You&#8217;re right, though - it is a little tiresome to shuffle commas around when rearranging arrays.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
