[Newbies] indenting code

stephane ducasse stephane.ducasse at free.fr
Wed Dec 13 17:48:10 UTC 2006

You can find some hints in the book of kent Beck
Best smalltalk practices.

He stresses the idea to have recognizable block.
I like the following.
Damien Pollet did Gutenberg a new pretty printer for squeak.
Giving him feedback is the best way to see it improved.

	"my comment"

	(self foo) ifTrue: [ self bar ]

	"my comment"

	(self foo)
		ifTrue: [ self bar.
			   self grumbleAtBit.
			   self done ]
		ifFalse: []


More information about the Beginners mailing list