Eliminating assignments and variable syntax (accessors)
Jesse Welton
jwelton at pacific.mps.ohio-state.edu
Thu Aug 5 12:24:25 UTC 1999
Stefan Matthias Aust wrote:
>
> Actually, my prefered statement separator is simply newline :-)
>
> Another "No" anyone?
Sure. "Noooooo!!!!" How's that?
Newline as separator severely cramps code layout style, and breaks
things like OrderedCollection>>at: (which, I would imagine, would
turn out to be a bad thing).
(anInteger < 1 or: [anInteger + firstIndex - 1 > lastIndex])
ifTrue: [self errorNoSuchElement]
ifFalse: [^ array at: anInteger + firstIndex - 1]
I'd hate to not be able to write something like that.
-Jesse Welton
More information about the Squeak-dev
mailing list
|