<?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: Code Safety and Correctness is a matter of Mindset Cultured by the Language</title>
	<atom:link href="http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/feed/" rel="self" type="application/rss+xml" />
	<link>http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/</link>
	<description>Sadek Drobi</description>
	<lastBuildDate>Mon, 02 Nov 2009 05:56:20 +0100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Sadache</title>
		<link>http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/comment-page-1/#comment-5596</link>
		<dc:creator>Sadache</dc:creator>
		<pubDate>Thu, 06 Nov 2008 17:32:13 +0000</pubDate>
		<guid isPermaLink="false">http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/#comment-5596</guid>
		<description>@Fran

I was referring to reads that &quot;Normally, [] [it] returns a singleton list, containing a value of type a that was read from the input string and the remaining string that follows what was parsed. If no parse was possible, however, the result is the empty list, and if there is more than one possible parse (an ambiguity), the resulting list contains more than one pair.

Of course we can have other non safe functions, but that is the idea, it is more about a culture of usage than an impossibility to be done.</description>
		<content:encoded><![CDATA[<p>@Fran</p>
<p>I was referring to reads that &#8220;Normally, [] [it] returns a singleton list, containing a value of type a that was read from the input string and the remaining string that follows what was parsed. If no parse was possible, however, the result is the empty list, and if there is more than one possible parse (an ambiguity), the resulting list contains more than one pair.</p>
<p>Of course we can have other non safe functions, but that is the idea, it is more about a culture of usage than an impossibility to be done.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fran</title>
		<link>http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/comment-page-1/#comment-5590</link>
		<dc:creator>Fran</dc:creator>
		<pubDate>Tue, 04 Nov 2008 20:44:57 +0000</pubDate>
		<guid isPermaLink="false">http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/#comment-5590</guid>
		<description>But read has exactly the problem discussed here: it will throw an exception if the parser fails.

Try read &quot;twenty&quot;::Int</description>
		<content:encoded><![CDATA[<p>But read has exactly the problem discussed here: it will throw an exception if the parser fails.</p>
<p>Try read &#8220;twenty&#8221;::Int</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jam</title>
		<link>http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/comment-page-1/#comment-5573</link>
		<dc:creator>Jam</dc:creator>
		<pubDate>Sun, 02 Nov 2008 23:51:52 +0000</pubDate>
		<guid isPermaLink="false">http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/#comment-5573</guid>
		<description>The function you&#039;re looking for is called &#039;read&#039;.  It has type String -&gt; a and is overloaded on the return type.  Works for ints, floats, lists etc.</description>
		<content:encoded><![CDATA[<p>The function you&#8217;re looking for is called &#8216;read&#8217;.  It has type String -&gt; a and is overloaded on the return type.  Works for ints, floats, lists etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sebastian</title>
		<link>http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/comment-page-1/#comment-5571</link>
		<dc:creator>Sebastian</dc:creator>
		<pubDate>Sun, 02 Nov 2008 23:03:07 +0000</pubDate>
		<guid isPermaLink="false">http://sadekdrobi.com/2008/11/02/code-safety-and-correctness-is-a-matter-of-mindset-cultured-by-the-language/#comment-5571</guid>
		<description>You have a point, but it&#039;s not the best example. 
The following function is a &quot;simple&quot; string-&gt;int conversion (actually, not just int).
read :: (Read a) =&gt; String -&gt; a</description>
		<content:encoded><![CDATA[<p>You have a point, but it&#8217;s not the best example.<br />
The following function is a &#8220;simple&#8221; string-&gt;int conversion (actually, not just int).<br />
read :: (Read a) =&gt; String -&gt; a</p>
]]></content:encoded>
	</item>
</channel>
</rss>
