<?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: Indentation-sensitive Erlang</title>
	<atom:link href="http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/feed/" rel="self" type="application/rss+xml" />
	<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/</link>
	<description>Feuerworks Inc - @uwiger - ulf (at) feuerworks.com</description>
	<lastBuildDate>Sat, 05 Nov 2011 10:32:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-11017</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Mon, 16 Feb 2009 08:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-11017</guid>
		<description>@Orielt - Could you expand on what it is that doesn&#039;t work? I just checked it with Safari/Windows, and it wasn&#039;t immediately obvious to me what would be wrong (posting this comment from Safari, btw).</description>
		<content:encoded><![CDATA[<p>@Orielt &#8211; Could you expand on what it is that doesn&#8217;t work? I just checked it with Safari/Windows, and it wasn&#8217;t immediately obvious to me what would be wrong (posting this comment from Safari, btw).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: OrieltOutweig</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-11009</link>
		<dc:creator>OrieltOutweig</dc:creator>
		<pubDate>Sun, 15 Feb 2009 21:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-11009</guid>
		<description>Your site does not correctly work in safari browser</description>
		<content:encoded><![CDATA[<p>Your site does not correctly work in safari browser</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bill McKeeman</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-7877</link>
		<dc:creator>Bill McKeeman</dc:creator>
		<pubDate>Tue, 30 Sep 2008 13:33:49 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-7877</guid>
		<description>Python required indentation has some value for the final code, and does avoid the need for end-brackets.  I have found it both irritating and dangerous in refactoring. It is all too easy to move some code and have it accidentally syntactically correct when it should be indented or outdented. Now the code is pretty and wrong.  I prefer pretty printers.</description>
		<content:encoded><![CDATA[<p>Python required indentation has some value for the final code, and does avoid the need for end-brackets.  I have found it both irritating and dangerous in refactoring. It is all too easy to move some code and have it accidentally syntactically correct when it should be indented or outdented. Now the code is pretty and wrong.  I prefer pretty printers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Arthur Lee</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3478</link>
		<dc:creator>Arthur Lee</dc:creator>
		<pubDate>Tue, 29 Apr 2008 02:23:31 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3478</guid>
		<description>@thomas lackner:
Using tab char should definitely be avoided.  Just use normal spaces for indentations.</description>
		<content:encoded><![CDATA[<p>@thomas lackner:<br />
Using tab char should definitely be avoided.  Just use normal spaces for indentations.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3050</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Thu, 20 Mar 2008 09:44:05 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3050</guid>
		<description>Oh, yes, here was another problem:
Alternative function clauses are separated by &#039;;&#039;, which with indentation could be replaced by an &#039;END&#039;. But if &#039;END&#039; terminates the last function clause, we get a syntax error, unless we change the grammar in a  way similar as we would if we wanted every function clause to end with a &#039;dot&#039;.

So what&#039;s the solution? Perhaps we should have a token denoting an empty line? Then, successive function clauses could be separated by newlines (without &#039;;&#039;), and the end of the function is marked by an empty line?</description>
		<content:encoded><![CDATA[<p>Oh, yes, here was another problem:<br />
Alternative function clauses are separated by &#8216;;&#8217;, which with indentation could be replaced by an &#8216;END&#8217;. But if &#8216;END&#8217; terminates the last function clause, we get a syntax error, unless we change the grammar in a  way similar as we would if we wanted every function clause to end with a &#8216;dot&#8217;.</p>
<p>So what&#8217;s the solution? Perhaps we should have a token denoting an empty line? Then, successive function clauses could be separated by newlines (without &#8216;;&#8217;), and the end of the function is marked by an empty line?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ulf Wiger</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3048</link>
		<dc:creator>Ulf Wiger</dc:creator>
		<pubDate>Thu, 20 Mar 2008 08:01:40 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3048</guid>
		<description>I did try to omit the &#039;end&#039;, but were unsuccessful in my first attempt. Perhaps there is a clever way to formulate the grammar so that it works, but I have yet to spot it. I welcome any help in the matter.

The problem with getting rid of the &#039;dot&#039; was that the erlang compiler scans one form at a time, and the form ends with a dot. I guess the scanner could signal end-of-form at either a &#039;dot&#039; or an &#039;END&#039;, whichever comes first...</description>
		<content:encoded><![CDATA[<p>I did try to omit the &#8216;end&#8217;, but were unsuccessful in my first attempt. Perhaps there is a clever way to formulate the grammar so that it works, but I have yet to spot it. I welcome any help in the matter.</p>
<p>The problem with getting rid of the &#8216;dot&#8217; was that the erlang compiler scans one form at a time, and the form ends with a dot. I guess the scanner could signal end-of-form at either a &#8216;dot&#8217; or an &#8216;END&#8217;, whichever comes first&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: carl henrik</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3041</link>
		<dc:creator>carl henrik</dc:creator>
		<pubDate>Wed, 19 Mar 2008 20:54:36 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3041</guid>
		<description>&quot;The ending dots don’t have to be on their own line. Getting rid of them was too hard for me, since ‘dot’ is the end token for the Erlang grammar.&quot;

  but it seems so easy; you&#039;d need to generate an END token when indentation goes to zero, or @ eof?
  what am i missing?</description>
		<content:encoded><![CDATA[<p>&#8220;The ending dots don’t have to be on their own line. Getting rid of them was too hard for me, since ‘dot’ is the end token for the Erlang grammar.&#8221;</p>
<p>  but it seems so easy; you&#8217;d need to generate an END token when indentation goes to zero, or @ eof?<br />
  what am i missing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Okasaki</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3039</link>
		<dc:creator>Chris Okasaki</dc:creator>
		<pubDate>Wed, 19 Mar 2008 19:19:17 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3039</guid>
		<description>Cool experiment!

&quot;(Note especially that the final ‘end’ must be aligned with the Y, rather than the ‘case’. Perhaps this could be avoided…?)&quot;

A fairly typical approach would be to use the indentation to allow you to omit the &#039;end&#039; altogether.</description>
		<content:encoded><![CDATA[<p>Cool experiment!</p>
<p>&#8220;(Note especially that the final ‘end’ must be aligned with the Y, rather than the ‘case’. Perhaps this could be avoided…?)&#8221;</p>
<p>A fairly typical approach would be to use the indentation to allow you to omit the &#8216;end&#8217; altogether.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Brown</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3038</link>
		<dc:creator>Paul Brown</dc:creator>
		<pubDate>Wed, 19 Mar 2008 19:06:28 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3038</guid>
		<description>Reads a lot like Haskell now...  At least with Emacs as a crutch, the Haskell&#039;s indentation rules do help with the visual detection of errors.</description>
		<content:encoded><![CDATA[<p>Reads a lot like Haskell now&#8230;  At least with Emacs as a crutch, the Haskell&#8217;s indentation rules do help with the visual detection of errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: thomas lackner</title>
		<link>http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/comment-page-1/#comment-3037</link>
		<dc:creator>thomas lackner</dc:creator>
		<pubDate>Wed, 19 Mar 2008 18:34:58 +0000</pubDate>
		<guid isPermaLink="false">http://ulf.wiger.net/weblog/2008/03/19/indentation-sensitive-erlang/#comment-3037</guid>
		<description>Interesting hack! I loathe indentation-based syntax (after all, the tab is an invisible character.. not a wise denotation for important structure), but it&#039;s really cool that you were able to do this without a complete rewrite of the parser. Is it possible that we could use a similar trick to add other useful tricks to erlang, like a syntax-level records fix, or literal syntax like { name: &quot;Tom&quot;, age: 26 } for proplists?</description>
		<content:encoded><![CDATA[<p>Interesting hack! I loathe indentation-based syntax (after all, the tab is an invisible character.. not a wise denotation for important structure), but it&#8217;s really cool that you were able to do this without a complete rewrite of the parser. Is it possible that we could use a similar trick to add other useful tricks to erlang, like a syntax-level records fix, or literal syntax like { name: &#8220;Tom&#8221;, age: 26 } for proplists?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

