<p>We can do functional programming on Java. We use all the design patterns for that.</p>
<p>At the very end, everything is just some noisy, hairy, side-effectfull, gotofull machinery code.</p>
<p>The beauty of Haskell is that it allows you to limit the things you need to reason about. If I see a function with the type &quot;(a, b) -&gt; a&quot; I don&#39;t need to read a man page to see where I should use it or not. I know what it can do by its type. In C I can not do this. What can I say about a function &quot;int foo(char* bar)&quot;? Does it allocate memory? Does it asks a number for the user on stdin? Or does it returns the length of a zero-ending char sequence? In fact it can do anything, and I can&#39;t forbid that. I can&#39;t guarantee that my function has good behaviour. You need to trust the man page.</p>

<div class="gmail_quote">Em 28/12/2011 22:24, &quot;Steve Horne&quot; &lt;<a href="mailto:sh006d3592@blueyonder.co.uk">sh006d3592@blueyonder.co.uk</a>&gt; escreveu:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 28/12/2011 23:56, Bernie Pope wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 29 December 2011 10:51, Steve Horne&lt;<a href="mailto:sh006d3592@blueyonder.co.uk" target="_blank">sh006d3592@blueyonder.<u></u>co.uk</a>&gt;  wrote:<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
As Simon Baron-Cohen says in &quot;Tackling the Awkward Squad&quot;...<br>
</blockquote>
I think you&#39;ve mixed up your Simons; that should be Simon Peyton Jones.<br>
<br>
</blockquote>
Oops - sorry about that.<br>
<br>
FWIW - I&#39;m diagnosed Aspergers. SBC diagnosed me back in 2001, shortly after 9/1/1.<br>
<br>
Yes, I *am* pedantic - which doesn&#39;t always mean right, of course.<br>
<br>
Not relevant, but what the hell.<br>
<br>
<br>
______________________________<u></u>_________________<br>
Haskell-Cafe mailing list<br>
<a href="mailto:Haskell-Cafe@haskell.org" target="_blank">Haskell-Cafe@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/haskell-cafe" target="_blank">http://www.haskell.org/<u></u>mailman/listinfo/haskell-cafe</a><br>
</blockquote></div>