From: anamma06@... Date: 2017-12-27T13:28:31+00:00 Subject: [ruby-core:84515] [Ruby trunk Feature#14105] Introduce xor as alias for Set#^ Issue #14105 has been updated by ana06 (Ana Maria Martinez Gomez). @jeremyevans0 > Note that the following core classes also use ^ for exclusive-or: > > Integer > FalseClass > TrueClass > NilClass That's a good point. Maybe we should consider adding the alias to the 4 classes. My point with this was trying to make it more readable, which Ruby does for many other things. ---------------------------------------- Feature #14105: Introduce xor as alias for Set#^ https://bugs.ruby-lang.org/issues/14105#change-69042 * Author: ana06 (Ana Maria Martinez Gomez) * Status: Open * Priority: Normal * Assignee: * Target version: ---------------------------------------- Not sure if I should also add feautures for the `Set` class here or if I should do it somewhere else. I would like to add a more readable method for the exclusive or, currently as `^` in set. It is in both mathematics, hardware and many other programming languages known as `xor`, so I think this will help to use it. ---Files-------------------------------- firefox.desktop (528 Bytes) -- https://bugs.ruby-lang.org/ Unsubscribe: