News for hackers. Stuff that matters.
Re:Pharo: A malleable and powerful platform by philippeback on Sunday October 13, 2013 @05:06PM (#6544175)
aBlock := [:times :delay | times timesRepeat: [ door open. (Delay milliseconds:delay) wait. door close ]].

aBlock value: 3 value: 30.

Re:Pharo: A malleable and powerful platform by bromagosa on Monday October 14, 2013 @05:29AM (#6546202)
This is valid Smalltalk code, but not the way you'd program a door in Smalltalk.

You'd probably prototype this in a Workspace, then create the method suggested above, which would force you to specify keys for the arguments, thus forcing you to make your code cleaner and more readable.

Re:Pharo: A malleable and powerful platform by kilon on Monday October 14, 2013 @08:46AM (#6546883)
completely agree with you. I am no big fan of blocks myself and I try to use them as sparse as possible. Keeping things simple is the way to go unless you have a good reason to do otherwise.