July 2, 2015
11:47 p.m.
On Fri, Jul 3, 2015 at 5:23 AM, stepharo <stepharo@free.fr> wrote:
Hi matthieu
on my side:
stream next ifNil: [^stream next].
When you execute a block (far away from the place it was created), it acts as an exception, it stops the execution of currently executed methods and return to its home context (method that led to the creation of the block) Read deep into Pharo because this is a great chapter. So people should avoid to put return statement into a block since a block returns already the value of its last expression.
So for me arg: [ ^ ... ]
is a big warning.
Stef
Is there a code critic for that ? :) cheers -ben