[ruby-core:80249] [Ruby trunk Feature#10169][Assigned] It might be better to make Mathn class deprecated

From: hsbt@...
Date: 2017-03-20 07:07:06 UTC
List: ruby-core #80249
Issue #10169 has been updated by hsbt (Hiroshi SHIBATA).

Status changed from Open to Assigned
Assignee set to hsbt (Hiroshi SHIBATA)
Target version set to 2.5

----------------------------------------
Feature #10169: It might be better to make Mathn class deprecated
https://bugs.ruby-lang.org/issues/10169#change-63688

* Author: gogotanaka (Kazuki Tanaka)
* Status: Assigned
* Priority: Normal
* Assignee: hsbt (Hiroshi SHIBATA)
* Target version: 2.5
----------------------------------------
#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`ใ‚’้žๆŽจๅฅจใซใ€ใ‚†ใใ‚†ใใฏๅปƒๆญขใ—ใฆใ—ใพใ†ใฎใŒ่‰ฏใ„ใจ่€ƒใˆใฆใ„ใพใ™.



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next