Aug. 1, 2013
11:15 a.m.
On 1 August 2013 12:13, Frank Shearar <frank.shearar@gmail.com> wrote:
On 1 August 2013 12:07, Stéphane Ducasse <stephane.ducasse@inria.fr> wrote:
Hi guys
we should not use caseOf: in the image. So I will start removing them.
Other than switching on _type_, what is the problem?
foo caseOf: { [1] -> ['one']. [2] -> ['two']. } otherwise: ['three']
What's wrong with this?
I can see a reason for removing #caseOf:, precisely because it doesn't force you to consider a failed match. (#caseOf:otherwise: is always exhaustive, in other words.) frank
Stef