<br><br>
<div class="gmail_quote">2009/3/10 Heinrich Apfelmus <span dir="ltr">&lt;<a href="mailto:apfelmus@quantentunnel.de">apfelmus@quantentunnel.de</a>&gt;</span><br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im">Sergey V. Mikhanov wrote:<br>&gt;</div></blockquote>
<div> </div>
<div>... some code ...</div>
<div> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">
<div class="im"><span id=""></span><br>&gt;<br>&gt; What would you do different (including stylistic changes)? What are<br>&gt; the general comments about efficiency (not of the algorithm, but of<br>&gt; the implementation: for example, is it fine to use break at every<br>
&gt; invocation of doFactors?) and elegance of the solution?<br><br></div>Stylistically, one usually uses shorter variable names in Haskell. </blockquote>
<div> </div>
<div>&lt;beginner rant&gt;</div>
<div>Sometime too short peraphs?  At least, this is one of the things that slows down my understanding of code posted</div>
<div>on this list on or on various haskell tutorial. In any other language I know, programmers learn to give meaningful names to variable and functions, so when one reads a program, one can use the name to remember what the function does. Then one cames to haskell ...</div>

<div>I guess the short names comes from mathematic background, but  still ... haskell is already very succint - even more so </div>
<div>when you use pointfree programming - and if one also uses names like a,e,i ( look at Array function definitions ), ...</div>
<div>&lt;/beginner rant&gt;</div>
<div> </div>
<div>Rant apart, I notice that in my own excercises I tend to shorten names, so maybe there is a reason for that.</div>
<div>Nevertheless readability tends to be a big issue in languages used in IT industry, and my feeling is that haskell</div>
<div>tends to err on the laconic side of the balance.</div>
<div> </div>
<div> </div>
<div>Out of curiosity, there is any reason why you called the auxiliary function &#39;go&#39; ?</div>
<div> </div>
<div>Ciao</div>
<div>-------</div>
<div>FB</div>
<div> </div>
<div> </div></div>