[swift-evolution] Standard operator precedence
    Chris Lattner 
    clattner at apple.com
       
    Sat Feb 13 22:10:10 CST 2016
    
    
  
> On Feb 13, 2016, at 6:32 AM, Xiaodi Wu via swift-evolution <swift-evolution at swift.org> wrote:
> 
> Not sure if this is intentional, a bug, and/or a topic for evolution:
> 
> In Swift, bitwise operators seem to have a different precedence in
> relation to other operators than they do in (all other?) C-family
> languages, at least per documentation. 
Yep, this is true, and this is intentional.  Swift has a greatly simplified and rationalized set of precedences, and yes, that means they differ from C.
-Chris
    
    
More information about the swift-evolution
mailing list