Project

General

Profile

Actions

Feature #10169

closed

It might be better to make Mathn class deprecated

Added by gogotanaka (Kazuki Tanaka) over 9 years ago. Updated almost 7 years ago.

Status:
Closed
Target version:
[ruby-core:64553]

Description

#English

As I mentioned in https://bugs.ruby-lang.org/issues/10086#change-48156,

  1. Now that we are able to hundle complex exponents without mathn.

  2. And overriding \ with quo has too much side effect. I suppose we should not implement such a thing in ruby standard library.

  3. Requiring and integrating other standard libraries doesn't make sense.

This is why I think it might be better to make Mathn class deprecated and disabled in the future.

#日本語(すみませんまだ英語が拙く、意図をより正確にお伝えするため日本語も記載させて頂きます)

僕がこちらのissueで述べさせて頂いた通り、https://bugs.ruby-lang.org/issues/10086#change-48156

  1. mathn で実装されている冪乗演算は mathn を用いずとも現在は実現されている事

  2. mathn 内で行われている \quo でオーバーライドする事は副作用が強く、またこの種のオーバーライドが必要な場面は多くなく、必要な場合でも自ら実装する事が多いと推測される事

  3. 各種数学関連のモジュールをrequireする機能もあまり意味を持たない事

以上の理由より、とりわけRubyの標準ライブラリーで現在のmathn を提供する必要を感じません.

よってmathnを非推奨に、ゆくゆくは廃止してしまうのが良いと考えています.


Related issues 3 (0 open3 closed)

Related to Ruby master - Bug #2121: mathn/rational destroys Fixnum#/, Fixnum#quo and Bignum#/, Bignum#quoClosedkeiju (Keiju Ishitsuka)09/19/2009Actions
Related to Ruby master - Feature #13335: Gemify mathnClosedhsbt (Hiroshi SHIBATA)Actions
Related to Ruby master - Feature #13334: Removed deprecated mathn extentions.Closedhsbt (Hiroshi SHIBATA)Actions
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0