On Mon, 30 Apr 2007 [EMAIL PROTECTED] 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! _______________________________________________ Haskell-Cafe mailing list Haskell-Cafe@haskell.org http://www.haskell.org/mailman/listinfo/haskell-cafe