[squeak-dev] OT: Re: The Trunk: Kernel-eem.1062.mcz

David T. Lewis lewis at mail.msen.com
Sat Mar 11 14:03:09 UTC 2017


On Fri, Mar 10, 2017 at 09:39:29PM +0100, Tobias Pape wrote:
> 
> > On 10.03.2017, at 20:55, Eliot Miranda <eliot.miranda at gmail.com> wrote:
> > 
> > Hi Tobias,
> > 
> > On Thu, Mar 9, 2017 at 12:39 PM, Tobias Pape <Das.Linux at gmx.de> wrote:
> > Hi,
> > 
> > 
> > > On 09.03.2017, at 21:34, commits at source.squeak.org wrote:
> > >
> > > +     DelaySuspended := true!
> > > -     DelaySuspended := true.!
> > 
> > This is OT and I'm just curious, but why did you remove the period?
> > 
> > In Smalltalk period is a statement separator.  In C semicolon is a statement terminator.
> 
> Yes. And the last statement in a Smalltalk method always is a return. Either explicit (^ bla) or implicit return self.
> Thats why I asked. For me
> 
> blorp
> 
> 	self foo.
> 	^ self knorz
> 
> is consistent with
> 
> foo
> 
> 	self bar.
> 	self baz.
> 
> because it is equivalent to
> 
> foo
> 
> 	self bar.
> 	self baz.
> 	^ self

To my eye, it makes no big difference either way. But for what it's worth
I think that the rationale for using an extra period is that it makes diffs
easier to read when someone later adds something to the end of the method.

Dave


> 
> 
> But, yes, that's OT.
> 
> Question is whether we change the style of existing methods to our own given that we do not have community consensus here???
> 
> Best regards
> 	-Tobias
> 
> 
> >  So in Smalltalk the period is unnecessary (and I find irritating) at the end of a method, wheres in C the semicolon and the end of a return statement, for example, is required.  I like to see code as clean as possible.  If I see some extraneous thing I find it distracting.  Another irritation for me is whitespace at the end of a method, which I think appears unnoticed due to bugs in some tools.  I even find myself irritated by the whitespace that turns up at the end of a method signature when there are keyword arguments (which arises from a natural way of writing the keyword:/argument printing code).    Rather OCD of me, but there it is.
> >  
> > Best regards
> >         -Tobias
> > 
> > _,,,^..^,,,_
> > best, Eliot
> > 
> 
> 


More information about the Squeak-dev mailing list