Operator precedence

Posted on
  • Is there a special precedence in Espruino to this:

    >8 | 7
    =15
    >8 | 7 & 1
    =1
    >1 & 7 | 8
    =9
    > 
    

    in go and in node.js it works either way:

    > 8 | 7
    15
    > 8 | 7 & 1
    9
    > 1 & 7 | 8
    9
    > 
    
  • Ahh - it's something that's already fixed. It'll be in 1v72

  • Post a reply
    • Bold
    • Italics
    • Link
    • Image
    • List
    • Quote
    • code
    • Preview
About

Operator precedence

Posted by Avatar for Frida @Frida

Actions