From: indirect Date: 2022-01-16T03:20:15+00:00 Subject: [ruby-core:107146] [Ruby master Feature#15559] Logical XOR (^^) operator Issue #15559 has been updated by indirect (Andr�� Arko). hmdne (hmdne -) wrote in #note-6: > @indirect your example can be written as follows: > > ```ruby > raise ArgumentError unless !!bar ^ !!baz > ``` You're just repeating the first comment on this thread. The entire point of this ticket is to have ^^ work on non-booleans, just like || and &&. Furthermore, your example is a bad one. If you want booleans, it's logically equivalent to only use a single exclamation point on each: `!bar ^ !baz`. ---------------------------------------- Feature #15559: Logical XOR (^^) operator https://bugs.ruby-lang.org/issues/15559#change-95996 * 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: