[Haskell-cafe] Unnecessarily strict implementations
Stephen Sinclair
radarsat1 at gmail.com
Thu Sep 2 12:10:32 EDT 2010
On Thu, Sep 2, 2010 at 3:25 AM, Jan Christiansen
<jac at informatik.uni-kiel.de> wrote:
> I prefer
>
> False <= _|_ = True
Sorry to go a bit off topic, but I find it funny that I never really
noticed you could perform less-than or greater-than comparisons on
Bool values. What's the semantic reasoning behind allowing relative
comparisons on booleans? In what context would you use it? It seems
to me a throwback to C's somewhat arbitrary assumption that False=0
and True=1.
Steve
More information about the Haskell-Cafe
mailing list