
2 May
2007
2 May
'07
7:10 a.m.
On Mon, 30 Apr 2007 ajb@spamcop.net wrote:
In bloom:
Function guards are your friends! This:
bloom hf sz hc = if condition then b else error "Badness"
is almost always better expressed as:
bloom hf sz hc | condition = b | otherwise = error "Badness"
Why replacing the almost-function 'if' by a special syntactic construct? Why replacing the two-branch decision 'if' by a multi-branch construct (similar to "switch") with two-branches? Express simple things the simple way!