Feature #1866

redefinable not (!) operators for 1.8

Added by Shyouhei Urabe over 2 years ago. Updated 10 months ago.

[ruby-dev:38990]
Status:Assigned Start date:08/03/2009
Priority:Low Due date:
Assignee:Akinori MUSHA % Done:

0%

Category:core
Target version:Ruby 1.8.8

Description

1.8でも!を再定義可能にするというのはどうでしょうか。
純粋な拡張なので、後方互換は問題ないんじゃないかと思っています。test-allは通っていそうです。

実装を(redmineに)添付します。

redefinable_not.patch - implementation of redefinable not, against ruby_1_8 (8 kB) Shyouhei Urabe, 08/03/2009 03:47 pm

History

Updated by Akinori MUSHA over 2 years ago

懸念点は性能低下くらいでしょうか。軽微ですかね?

あと、NODE_NOTは廃止できますか?

Updated by Shyouhei Urabe over 2 years ago

性能低下は軽微なのではないかとおもいますが、すいません、未評価です。

NODE_NOTは廃止しようと思えばできる気がしますが、1.8の間はバイナリ互換性のためにあえて残しておいたほうがよくないでしょうか。

Also available in: Atom PDF