From: muraken@... Date: 2019-01-24T02:18:39+00:00 Subject: [ruby-core:91240] [Ruby trunk Feature#15559] Logical XOR (^^) operator Issue #15559 has been updated by mrkn (Kenta Murata). You can write `expr1 ^^ expr2` as `!expr1 != !expr2` in the current Ruby. If both `expr1` and `expr2` are boolean, you can write `expr1 != expr2`. I think `^^` can be useful for the case that both `expr1` and `expr2` are not boolean. Have you ever write such conditional expressions? ---------------------------------------- Feature #15559: Logical XOR (^^) operator https://bugs.ruby-lang.org/issues/15559#change-76485 * Author: baweaver (Brandon Weaver) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- 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: