Ruby 逻辑运算符
Possible Duplicate:
Is there any wisdom behind “and”, “or” operators in Ruby ?
What is the difference, if any, between the following pairs of logical operators?
- && vs. and
- || vs. or
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“单词”版本的优先级低于“符号”版本。事实上,它们的优先级甚至低于赋值。
The "word" versions have lower precedence than the "symbol" versions. In fact, they have even lower precedence than assignment.