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 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 [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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 > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Torsten Bergmann
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: what do you mean by now used? Did they change that recently? > http://c2.com/ppr/formatting.html#2 > > See Compiler-cmm.131.mcz in Squeak. > Stef _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Stéphane Ducasse
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 >> [hidden email] >> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project > > > _______________________________________________ > Pharo-project mailing list > [hidden email] > http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
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 <[hidden email]> wrote: I don't like Beck's rule "3. Rectangular Block": _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
In reply to this post by Adrian Lienhard
El mié, 03-03-2010 a las 10:19 +0100, Adrian Lienhard escribió:
> 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 ] +1 -- Miguel Cobá http://miguel.leugim.com.mx _______________________________________________ Pharo-project mailing list [hidden email] http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project |
Free forum by Nabble | Edit this page |