From: Yusuke Endoh Date: 2010-01-31T18:12:57+09:00 Subject: [ruby-core:27981] [Bug #2495](Rejected) Matrix: Vector#each2 should check its argument Issue #2495 has been updated by Yusuke Endoh. Status changed from Open to Rejected According to [ruby-dev:40237] and [ruby-dev:40267], it is the fate of duck typing and compatibility. [ruby-dev:40237] by Keiju (the author of lib/matrix.rb): - Integer#[] and #size have wrong names from the aspect of duck typing. - Type checking to restrict only Vector and Array will prevent NVector of NArray. [ruby-dev:40267] by matz: - Integer#[] and #size are older than the concept of duck typing, and it is too late to change their names. - From the aspect of duck typing, type checking should not be done and we should accept such an error of [ruby-core:27901]. -- Yusuke ENDOH ---------------------------------------- http://redmine.ruby-lang.org/issues/show/2495 ---------------------------------------- http://redmine.ruby-lang.org