From: "hmdne (hmdne -)" Date: 2022-01-16T02:30:02+00:00 Subject: [ruby-core:107143] [Ruby master Feature#15559] Logical XOR (^^) operator Issue #15559 has been updated by hmdne (hmdne -). Since we don't need short-circuit evaluation, we can simply use `^` for that reason. It's already defined on both TrueClass and FalseClass AND NilClass. @indirect your example can be written as follows: ```ruby raise ArgumentError unless !!bar ^ !!baz ``` ---------------------------------------- Feature #15559: Logical XOR (^^) operator https://bugs.ruby-lang.org/issues/15559#change-95991 * Author: baweaver (Brandon Weaver) * Status: Open * Priority: Normal ---------------------------------------- Currently we have bitwise `&` and logical `&&`, and bitwise `|` and logical `||`. Would it be possible to have logical `^^` in addition to the bitwise `^` for XOR? -- https://bugs.ruby-lang.org/ Unsubscribe: