[squeak-dev] Re: The Inbox: Compiler-cmm.179.mcz

Chris Muller asqueaker at gmail.com
Wed Jun 1 17:11:20 UTC 2016


Agree.  :)

On Wed, Jun 1, 2016 at 10:21 AM, marcel.taeumel <Marcel.Taeumel at hpi.de> wrote:
> Hi Chris,
>
> I would call this rather "different" than "improved". I think that we would
> benefit from a configurable pretty printer. There are a bunch of acceptable
> Smalltalk code styles out there. There is no such thing as the one best
> formatting.
>
> For example, I do prefer this style
>
> somePredicate
>    ifTrue: [
>       something.
>       something]
>    ifFalse: [
>       something.
>       something].
>
> ... over this style:
>
> somePredicate
>    ifTrue:
>       [ something.
>       something ]
>    ifFalse:
>       [ something.
>       something ].
>
> Or something like that. Too much spaces. Complicated position of
> parentheses. I can come up a number of reasons. Hence, I think that there
> are many Smalltalkers out there, that also have their own style.
>
> Sometimes this seems even more readable:
>
> somePredicate
>    ifTrue: [something. something]
>    ifFalse: [something. something].
>
> Sure, we have some official books that suggest some code formatting.
> Personally, I would prefer a configure system where I can read and write the
> code in the way I feel most productive. :-)
>
> Just my two cents.
>
> Best,
> Marcel
>
>
>
> --
> View this message in context: http://forum.world.st/The-Inbox-Compiler-cmm-179-mcz-tp4898674p4898688.html
> Sent from the Squeak - Dev mailing list archive at Nabble.com.
>


More information about the Squeak-dev mailing list