<div dir="ltr">For example I&#39;m scared by += a function compositions.<div><br></div><div>For example hereĀ </div><div><br></div><blockquote style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:40px;border-top-style:none;border-right-style:none;border-bottom-style:none;border-left-style:none;border-width:initial;border-color:initial;padding-top:0px;padding-right:0px;padding-bottom:0px;padding-left:0px">
<div><pre style="color:rgb(0,0,0);font-size:13px;line-height:18px">units.traversed.health -= 3</pre></div></blockquote><div><br></div><div>(fromĀ <a href="http://www.haskellforall.com/2013/05/program-imperatively-using-haskell.html">http://www.haskellforall.com/2013/05/program-imperatively-using-haskell.html</a>) I&#39;ve some difficult to grasp the type. I can calculate it (or ask ghci :-D) , but it looks complex to grasp.</div>
<div><br></div><div>May be I&#39;m just too new to Haskell tools... but... I fear that in the long run, this could become unreadable.</div><div><br></div><div><br></div><div>Am I wrong?</div><div><br></div><div><br></div>
<div>Giacomo</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 24, 2013 at 5:10 PM, Kim-Ee Yeoh <span dir="ltr">&lt;<a href="mailto:ky3@atamo.com" target="_blank">ky3@atamo.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 dir="ltr"><div class="gmail_extra"><div class="im"><br><div class="gmail_quote">On Fri, May 24, 2013 at 9:15 PM, Giacomo Tesio <span dir="ltr">&lt;<a href="mailto:giacomo@tesio.it" target="_blank">giacomo@tesio.it</a>&gt;</span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>I know the limits of imperative programming, and despite the fact that lens are purely functional by themself, I&#39;m scared about limits in readability of code. I&#39;m afraid of writing &quot;write-only&quot; code.</div>



<div></div></blockquote></div><br></div>Without any example or further details about the exact nature of this fear, I think it&#39;s really difficult for anyone to do this question justice.</div><div class="gmail_extra">
<br></div>

<div class="gmail_extra">As a start, try divvying up the issue into syntax and semantics. Semantically, lenses remain purely functional, as you say. Syntax-wise, it appears problematic. One path forward is to flesh out what you mean by the latter.</div>
<span class="HOEnZb"><font color="#888888">

<div class="gmail_extra"><br></div><div class="gmail_extra"><div>-- Kim-Ee</div>
</div></font></span></div>
<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>
<br></blockquote></div><br></div>