[Pharo-project] about code formatting in pharo

Peter Hugosson-Miller oldmanlink at gmail.com
Wed Mar 3 04:26:27 EST 2010


Really? That's the first time I've ever seen a lonely left bracket like
that, in all my 15 years of Smalltalk experience!

So for me personally, Beck's rule 3 is the one that looks better.

-- 
Cheers,
Peter

On Wed, Mar 3, 2010 at 10:19 AM, Adrian Lienhard <adi at netstyle.ch> wrote:

> I don't like Beck's rule "3. Rectangular Block":
>
> b ifTrue:
>        [self clearCaches.
>        self recomputeAngle]
>
> I prefer (and this is how most other people format blocks in my
> experience):
>
> b ifTrue: [
>        self clearCaches.
>        self recomputeAngle ]
>
> Adrian
>
> On Mar 3, 2010, at 10:03 , Stéphane Ducasse wrote:
>
> >
> > On Mar 3, 2010, at 9:26 AM, Torsten Bergmann wrote:
> >
> >> Gary wrote:
> >>> The answer is that the code is formatted when viewing, from,
> potentially,
> >>> unformatted code. Should please everyone.
> >>
> >> +1
> >>
> >> Looks like in Squeak the rules from Ward Cunningham are now used for
> pretty print:
> >> http://c2.com/ppr/formatting.html#2
> >
> > I love them!
> > we should point the wiki to this page!!!
> >
> >>
> >> See Compiler-cmm.131.mcz in Squeak.
> >>
> >>
> >> --
> >> Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
> >> jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/chbrowser
> >>
> >> _______________________________________________
> >> Pharo-project mailing list
> >> Pharo-project at lists.gforge.inria.fr
> >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
> >
> >
> > _______________________________________________
> > Pharo-project mailing list
> > Pharo-project at lists.gforge.inria.fr
> > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.pharo.org/pipermail/pharo-dev_lists.pharo.org/attachments/20100303/d38035cc/attachment-0001.html>


More information about the Pharo-dev mailing list