Hi Cristiano,<br><br>Similarly, any value can be thought of as a list (perhaps singleton), a Maybe (Just), a pair ((,) undefined or (,) mempty), an IO (return), ... (any Applicative).<br><br>And yet I&#39;ve heard &quot;everything is a function&quot; on several occasions, but not these others.&nbsp; Hence my (continuing) puzzlement about the source of that idea.&nbsp; I have some speculations:<br>
<br>* In pure &quot;OO&quot; programming, everything is an object, so in pure &quot;functional&quot; programming, one might assume everything is a function.&nbsp; I find the term &quot;value-oriented programming&quot; a more accurate label than &quot;functional programming&quot;.<br>
<br>* C has definitions for functions but assignments for other types.&nbsp; Since pure functional languages eliminate assignment, one might assume that only functions remain.&nbsp; (I also hear people refer to top-level definitions in a Haskell module as &quot;functions&quot;, whether they&#39;re of function type or not.)<br>
<br>Are there other thoughts &amp; insights about the source of the idea that &quot;everything is a function&quot;?<br><br>Thanks,<br><br>&nbsp; - Conal<br><br><div class="gmail_quote">On Fri, Jan 2, 2009 at 2:52 AM, Cristiano Paris <span dir="ltr">&lt;<a href="mailto:frodo@theshire.org">frodo@theshire.org</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On Tue, Dec 30, 2008 at 8:35 AM, Conal Elliott &lt;<a href="mailto:conal@conal.net">conal@conal.net</a>&gt; wrote:<br>

&gt;&gt; Everything in Haskell is a function [...]<br>
&gt;<br>
&gt; Where did this idea come from?<br>
&gt;<br>
&gt; I&#39;d say every expression in Haskell denotes a pure value, only some of which<br>
&gt; are functions (have type a-&gt;b for some types a &amp; b).<br>
<br>
</div>Maybe more formally correct, but my statement still holds true as any<br>
values can be tought as constant functions, even those representing<br>
functions themselves.<br>
<font color="#888888"><br>
Cristiano<br>
</font></blockquote></div><br>