The challenge is expressed this way...
try explaining to someone how Smalltalk's ifTrue:ifFalse: works sometime
The message looks like this...someObject ifTrue: [someCode] ifFalse: [otherCode]
.
See if my attempt makes sense to you:
If someObject
is true, then someCode
is executed. Otherwise otherCode
is executed.
Is that basic enough for non-Smalltalkers?
No comments:
Post a Comment