Open p5pRT opened 6 years ago
I was working on a program and ran into a case where I wanted to use a NAND operator ( ⊼ ). As a work-around\, I can use !(A^B) -- not xor\, but it would be really cool if perl had a way to define -- ESPECIALLY operators that were easily expressible in terms of existing operators.
I don't really want to override or lost existing operators -- so being able to add new ones would be rather cool. As an aside\, unicode uses ' ⊻ ' for XOR\, and ' ⊽ ' for NOR\, but I could see something like defining name=>'NOR' symbol=>⊼ imple=!^ or as a sub NAND($$){!$_[0] ^ $_[1] }. Certainly could ressurect that APL look & feel ;-). (OK\, maybe not\, but...) I would be nice if perl could put some of those cool Unicode character to more use.
Migrated from rt.perl.org#133243 (status was 'new')
Searchable as RT133243$