Code formatting patterns (was: [squeak-dev] The Trunk: Compiler-cmm.275.mcz)

Stéphane Rollandin lecteur at zogotounga.net
Sat Oct 5 18:39:14 UTC 2013


> Compare
>
> 	[ undeclared at: sym put: nil ]
> 		on: AttemptToWriteReadOnlyGlobal
> 		do: [ :noti | noti resume: true ]
>
> to:
>
> 	[ undeclared
> 		at: sym
> 		put: nil ]
> 		on: AttemptToWriteReadOnlyGlobal
> 		do: [ :noti | noti resume: true ]
>
> Isn't the first one much more "rectangular" and easier to read? I find the indentation in the second one irritating.

+1

Stef


More information about the Squeak-dev mailing list