June 27, 2014
7:43 p.m.
he is referring to #caseOf: and #caseOf:otherwise: which are a bit controversial ;-) On 27 Jun 2014, at 21:38, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
2014-06-27 16:31 GMT-03:00 Eliot Miranda <eliot.miranda@gmail.com>:
On Fri, Jun 27, 2014 at 11:58 AM, Esteban A. Maringolo <emaringolo@gmail.com> wrote:
Because Smalltalk lacks a "switch/case" control flow structure? :) and of course it has one that works just fine.
Really? Which one?
Or are you referring to this code pattern? (a = 1) ifTrue: [^...]. (a = 2) ifTrue: [^...]. (a = 3) ifTrue: [^...].
Double dispatching is not always an option. :)
Esteban A. Maringolo