Issue #14105 has been updated by knu (Akinori MUSHA).


gotoken (Kentaro Goto) wrote:
> By the way I recently wrote this set theoretical operation to find all uncommon files in two file collections then I reminded this feature request :)

That sounds interesting.  I don't think I actually had a use case for `Set#^` in mind when I implemented it, so I'd appreciate if you could share some real use cases for it. 

----------------------------------------
Feature #14105: Introduce xor as alias for Set#^
https://bugs.ruby-lang.org/issues/14105#change-72117

* Author: ana06 (Ana Maria Martinez Gomez)
* Status: Assigned
* Priority: Normal
* Assignee: knu (Akinori MUSHA)
* 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: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>