[squeak-dev] Re: Code formatting patterns
Francisco Garau
francisco.garau at gmail.com
Thu Oct 10 07:14:53 UTC 2013
On 9 Oct 2013, at 23:22, Levente Uzonyi <leves at elte.hu> wrote:
> On Wed, 9 Oct 2013, Bert Freudenberg wrote:
>
>> On 08.10.2013, at 23:02, Chris Muller <asqueaker at gmail.com> wrote:
>>
>>> My gripe with [:each | each doSomething] is that word-selection then includes the colon, which is a pain when you want to Command+h, Command+g it.
>>
>> Now that sounds like it would be easy to fix, no? We should fix the tools, not work around them.
>>
>>> Plus, [: each | each doSomething] is consistent with method signatures, an anonymous selector.
>>
>> Emerson's quote regarding consistency applies. Sorry, could not resist ;)
>
> If we could get rid of that vertical bar... :)
>
Or add brackets around each method definition and a vertical bar to separate the selector... It would make a nice chunk format!
Point >> [x: aNumber | x := aNumber]
More information about the Squeak-dev
mailing list
|