Hi!

On 5 Jan 2009, at 12:10, David Chisnall wrote:
> (non-local
> returns are usually bad programming style anyway).

I'm not so sure about that. Considering guard clauses, isn't it even  
rather wide-spread? But maybe I'm overlooking some obvious Smalltalk  
idiom there?

A made-up example:
Integer>>factorial
    (self < 0) ifTrue: [ ^0 ].
    "long and complicated computation otherwise"

> Please can everyone test this before I move it into stable.

I'll try to have a look soon. :)

Best regards,
Günther


_______________________________________________
Etoile-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/etoile-discuss

Répondre à