|
From: | Paolo Bonzini |
Subject: | Re: [Help-smalltalk] Re: Question regarding DatagramSocket... |
Date: | Wed, 16 Jun 2010 14:41:16 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4 |
On 06/16/2010 02:33 PM, Holger Hans Peter Freyther wrote:
On 06/12/2010 04:30 PM, Paolo Bonzini wrote:Answering both question with a citation from "Smalltalk Best Practice Patterns":Is that available somewhere or do you have the ISBN Number?
Amazon says 978-0134769042.
If I write code like this, I don’t mean “here are two alternative paths of execution,”, I mean, “here are two alternative values to be returned.” Thus, a Conditional Expression expresses my intent more clearly:Would something like the attached patch work for it?
Yes, that would be it. However, I'm not sure about the benefit of complicating the logic of the #ifTrue: block.
Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |