Ruby:
true == true == true
Run Code Online (Sandbox Code Playgroud)
语法错误,意外的tEQ
与JavaScript:
true == true == true
// => true
Run Code Online (Sandbox Code Playgroud)
与C:
1 == 1 == 1
// => 1
Run Code Online (Sandbox Code Playgroud) ruby operators syntax-error operator-precedence associativity