July 19, 2011
3:19 p.m.
Can anyone explain me why it would make sense to use #return: in the following method? TestCase >> executeShould: aBlock inScopeOf: anExceptionalEvent ^[aBlock value. false] on: anExceptionalEvent do: [:ex | ex return: true] I would instinctively replace [:ex | ex return: true] with the much simpler [:ex | ^ true].. Am I missing something here? camillo