<div dir="ltr">Hey Benjamin, I solved the quiz myself but would you mind posting your code again so I can compare ??&nbsp;<div><br></div><div>Thanks a ton</div><div><br></div><div>Federico&nbsp;<br><br><div class="gmail_quote">On Thu, Aug 14, 2008 at 2:10 AM, Benjamin L. Russell <span dir="ltr">&lt;<a href="mailto:DekuDekuplex@yahoo.com">DekuDekuplex@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="Ih2E3d">On Wed, 13 Aug 2008 14:14:46 +0100, &quot;Chaddai Fouche&quot;<br>
&lt;<a href="mailto:chaddai.fouche@gmail.com">chaddai.fouche@gmail.com</a>&gt; wrote:<br>
<br>
&gt;2008/8/13 Bayley, Alistair &lt;<a href="mailto:Alistair.Bayley@invesco.com">Alistair.Bayley@invesco.com</a>&gt;:<br>
&gt;&gt;&gt; First, monad /= imperative<br>
&gt;&gt;&gt; It is important to establish this distinction which doesn&#39;t seem to be<br>
&gt;&gt;&gt; very clear in some minds...<br>
&gt;&gt;<br>
&gt;&gt; I think Matthias Felleisen probably understands this, but I could be wrong...<br>
&gt;&gt;<br>
&gt;<br>
&gt;I think so too, but we&#39;re on Haskell-beginners and the formulation was<br>
&gt;much too ambiguous to let it pass, I would prefer that beginners in<br>
&gt;Haskell don&#39;t start with the idea that Monad are always imperative,<br>
&gt;it&#39;s already too current a misunderstanding.<br>
<br>
</div>Can you recommend any specific examples to illustrate this point to a<br>
programmer/educator from a Scheme background arguing that specific<br>
libraries in world.ss are more functional than the monadic examples<br>
for animations in SOE?<br>
<br>
If possible, I would like to write a rebuttal to his claim, using<br>
specific examples.<br>
<div class="Ih2E3d"><br>
&gt;&gt; I had a quick scan of the SOE source and it looks as though all of the graphics operations are in IO (). I don&#39;t see why you couldn&#39;t rearrange it so that describing shapes was purely functional, while rendering was still IO () (required by OpenGL, I assume), but it looks like it could be quite a bit of work.<br>

&gt;&gt;<br>
&gt;<br>
&gt;That&#39;s unfortunate. Of course IO (or some FRP hiding the IO) is still<br>
&gt;required to do the rendering, but it would be much nicer to split<br>
&gt;those concerns.<br>
<br>
</div>That&#39;s probably the point that Felleisen was addressing. &nbsp;If functions<br>
have any side-effects, then they aren&#39;t purely functional, but in<br>
order to perform rendering, side-effects would be necessary in both<br>
Haskell and Scheme, so this can&#39;t be his point. &nbsp;Therefore, he must be<br>
referring to other functions written in a more purely functional style<br>
in world.ss than in SOE. &nbsp;In order to address his point, they would<br>
probably be need to be rewritten in a purely functional style.<br>
<font color="#888888"><br>
-- Benjamin L. Russell<br>
</font><div><div></div><div class="Wj3C7c"><br>
_______________________________________________<br>
Beginners mailing list<br>
<a href="mailto:Beginners@haskell.org">Beginners@haskell.org</a><br>
<a href="http://www.haskell.org/mailman/listinfo/beginners" target="_blank">http://www.haskell.org/mailman/listinfo/beginners</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Federico Brubacher<br><a href="http://www.fbrubacher.com">www.fbrubacher.com</a><br><br>Colonial Duty Free Shop<br><a href="http://www.colonial.com.uy">www.colonial.com.uy</a><br>

</div></div>