<div dir="ltr">I was surprised today to find that C and Haskell differ on the precedence of addition and bit-wise and.<div><br></div><div>In Haskell, bit-wise-and (.&.) binds tighter. In C, it's the other way around.</div><div><br></div><div>While I like Haskell's precedence better, this was a gotcha; and I wondered if this behavior is documented somewhere. I looked through the Haskell wiki, but couldn't find anything pertinent.</div><div><br></div><div>Discrepancies are always problematic. Without bike-shedding a lot, does anyone know if this was a conscious decision or merely a more natural one to take?</div><div><br></div><div>Cheers,</div><div><br></div><div>-Levent.</div></div>