From: "NARUSE, Yui" Date: 2011-01-21T03:56:32+09:00 Subject: [ruby-core:34675] Re: Feature request - Low level bitwise operations on char arrays (or class String) (2011/01/19 18:22), Martin Asser Hansen wrote: > I still think that String#^ (and corresponding | & ~) would be in > order as these can be used much more generic. > > How about simply copying Perl's way? > > maasha@mel:~$ perl -le 'print "aaaaa" ^ " "' AAaaa > > I find that this behaviour unsurprising. I agree that Perl's way is a possible choice. But when we design, the spec must have well considered. Usually "because perl does so" can't be a reason. http://perldoc.perl.org/perlop.html#Bitwise-String-Operators -- NARUSE, Yui