[Haskell-cafe] Precedence of plus and bit-wise-and

Brandon Allbery allbery.b at gmail.com
Wed Aug 16 02:11:49 UTC 2017


On Tue, Aug 15, 2017 at 10:06 PM, Clinton Mead <clintonmead at gmail.com>
wrote:

> I wasn't involve in the decision but personally I would expect "&" (and)
> to have precedence like "*" and "|" (or) to have precedence like "+",
> whether bitwise or logical.
>
> It seems from what you're saying that's how Haskell works. Flipping it
> would be more of a gotcha to me.
>

C's precedence for bitwise ops is an infamous gotcha.

-- 
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/20170815/208c23db/attachment.html>


More information about the Haskell-Cafe mailing list