13 Nov 11:00
Re: Pattern Matching
Colin Paul Adams <colin <at> colina.demon.co.uk>
2009-11-13 10:00:00 GMT
2009-11-13 10:00:00 GMT
>>>>> "Andrew" == Andrew Coppin <andrewcoppin <at> btinternet.com> writes:
Andrew> Casey Hawthorne wrote:
>> Why in a pattern match like
>>
>> score (1 3) = 7
>>
>> can I not have
>>
>> sizeMax = 3
>>
>> score (1 sizeMax) = 7
>>
If I had a dollar for every time I've written something like
Andrew> case msg of eVENT_QUIT -> ... eVENT_POST -> ...
Andrew> eVENT_RESIZE -> ...
Andrew> and spent an hour trying to figure out why the messages
Andrew> aren't being processed right...
So why aren't they?
--
--
Colin Adams
Preston Lancashire
RSS Feed