<div dir="ltr"><div><div>Not only comments, literal formatting is also important...<br></div>If I want to put line breaks and tabs inside a #( ... ), the formatter shall not break it.<br></div>If I want to write 2r0110, there must be a reason, and the formatter shall not normalize to 6.<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/10/8 Chris Muller <span dir="ltr">&lt;<a href="mailto:asqueaker@gmail.com" target="_blank">asqueaker@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
&gt; On Mon, Oct 7, 2013 at 3:01 AM, Bert Freudenberg &lt;<a href="mailto:bert@freudenbergs.de">bert@freudenbergs.de</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; On 2013-10-06, at 20:25, Eliot Miranda &lt;<a href="mailto:eliot.miranda@gmail.com">eliot.miranda@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt; hence we&#39;re left with the war between visual thinkers (rectangular<br>
&gt;&gt; &gt; blocks) and verbal thinkers (pascal formatting).  just throwing wood on the<br>
&gt;&gt; &gt; fire ;-)<br>
&gt;&gt;<br>
&gt;&gt; I very much like rectangular blocks as the general formatting rule; this<br>
&gt;&gt; is how Smalltalk code looks &quot;naturally&quot; to me. However, you must *not* put a<br>
&gt;&gt; space inside the brackets because then they draw too much attention,<br>
&gt;&gt; standing there on their own:<br>
&gt;&gt;<br>
&gt;&gt;         [this is<br>
&gt;&gt;         rectangular]<br>
&gt;<br>
&gt;<br>
&gt; Ian Piumarta and I are anal enough to prefer<br>
&gt;<br>
&gt;         [this is<br>
&gt;          rectangular<br>
&gt;          and nicely indented]<br>
&gt;<br>
&gt; ;-)<br>
&gt;<br>
&gt;&gt;<br>
&gt;&gt; vs<br>
&gt;&gt;<br>
&gt;&gt;         [ this is not<br>
&gt;&gt;         as rectangular ]<br>
&gt;<br>
&gt;<br>
&gt; yuck.  Ugly as sin.  Hate the extra whitespace.  I like asSortedCollection:<br>
&gt; [:a :b| a &lt; b], *not* *horrible* [ :a :b |, or even *worse*, [ : a : b |<br>
&gt; (argh)... ;-)<br>
<br>
I guess there&#39;s no accounting for taste.  :)<br>
<br>
My gripe with [:each | each doSomething] is that word-selection then<br>
includes the colon, which is a pain when you want to Command+h,<br>
Command+g it.  Plus, [: each | each doSomething] is consistent with<br>
method signatures, an anonymous selector.<br>
<br>
&gt;&gt; Conventional wisdom says in that case one should refactor the method<br>
&gt;&gt; because it got too complex, which I agree to if there is a part that makes<br>
&gt;&gt; sense as its own method. However, I personally don&#39;t like one-off private<br>
&gt;&gt; methods just for the sake of simplifying one method. These typically need<br>
&gt;&gt; many arguments, have perhaps multiple return values, so the resulting<br>
&gt;&gt; complexity is not worth doing it.  Or am I missing something?<br>
&gt;<br>
&gt; Nope.  +1.<br>
&gt;<br>
&gt; If it weren&#39;t for comments (and comments are /really/ important) we&#39;d have<br>
&gt; implemented a parameterised formatted by now that auto-formatted code to the<br>
&gt; preferences of the reader and this would all be moot.  But without a good AI<br>
&gt; I don&#39;t see how to spot and preserve while reformatting multi-line comments,<br>
&gt; comments with diagrams in them, etc, etc, etc.<br>
<br>
Right the formatter butchers comments is all the more reason I lean<br>
toward composing methods to expose more meaning.  Auto-formatting is<br>
too valuable to give up.<br>
<br>
</blockquote></div><br></div>