[Haskell-cafe] What does "1 = 2" mean in Haskell?
Brandon Allbery
allbery.b at gmail.com
Sun Feb 26 23:36:05 UTC 2017
On Sun, Feb 26, 2017 at 6:34 PM, <ok at cs.otago.ac.nz> wrote:
> If nothing else, it would be nice to have a "dead code" warning
> from the compiler about code that is certain not to be evaluated.
> "2" counts as dead code in this example.
>
I did point out that -Wall includes a warning for this earlier... and "dead
code" warnings in most compilers require optimization.
--
brandon s allbery kf8nh sine nomine associates
allbery.b at gmail.com ballbery at sinenomine.net
unix, openafs, kerberos, infrastructure, xmonad http://sinenomine.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/haskell-cafe/attachments/20170226/5c891be5/attachment.html>
More information about the Haskell-Cafe
mailing list