MyClass>>someMethod
(some condition) ifFalse: [^self]
self doThingOne.
self doThingTwo.
self doMoreLinesOfCode]
instead of:
MyClass>>someMethod
(some condition) ifTrue:
[self doThingOne.
self doThingTwo.
self doMoreLinesOfCode]
I don't think I understand this properly yet. There is something odd about asking, for example a list to do something, and for the return result to be the list. I am not sure how my coding would cope with that, i.e. rather than getting a failure message or something like that. More pondering required.
No comments:
Post a Comment