ruby-core@ruby-lang.org archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
@ 2021-10-26 10:20 shugo (Shugo Maeda)
  2021-11-17  7:06 ` [ruby-core:106106] [Ruby master Feature#18270] " shugo (Shugo Maeda)
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2021-10-26 10:20 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been reported by shugo (Shugo Maeda).

----------------------------------------
Bug #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
* Backport: 2.6: UNKNOWN, 2.7: UNKNOWN, 3.0: UNKNOWN
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106106] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
@ 2021-11-17  7:06 ` shugo (Shugo Maeda)
  2021-11-17  7:58 ` [ruby-core:106107] " shugo (Shugo Maeda)
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2021-11-17  7:06 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by shugo (Shugo Maeda).


These methods raise ArgumentError since #13236 was fixed, so it may not be necessary to remove them.


----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-94695

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106107] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
  2021-11-17  7:06 ` [ruby-core:106106] [Ruby master Feature#18270] " shugo (Shugo Maeda)
@ 2021-11-17  7:58 ` shugo (Shugo Maeda)
  2021-11-18  6:14 ` [ruby-core:106117] " shugo (Shugo Maeda)
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2021-11-17  7:58 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by shugo (Shugo Maeda).


append_features is undefined in the class Class, and Module#include raises TypeError before calling append_features if the given argument is a Class.


----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-94696

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106117] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
  2021-11-17  7:06 ` [ruby-core:106106] [Ruby master Feature#18270] " shugo (Shugo Maeda)
  2021-11-17  7:58 ` [ruby-core:106107] " shugo (Shugo Maeda)
@ 2021-11-18  6:14 ` shugo (Shugo Maeda)
  2021-11-18  9:55 ` [ruby-core:106131] " Eregon (Benoit Daloze)
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2021-11-18  6:14 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by shugo (Shugo Maeda).

Assignee changed from matz (Yukihiro Matsumoto) to shugo (Shugo Maeda)

At the developers meeting on 2011-11-18, Matz accepted the following changes in Ruby 3.2:

* Undefine extend_object, append_features, prepend_features in Refinement.
* extend, include, and prepend raise a TypeError if the given argument is a Refinement as in the case the argument is a Class.

No warnings will be added in Ruby 3.1, because append_features etc. currently already raises ArgumentError.

```
excelsior:ruby$ ruby -e 'class Foo; end; module Bar; refine Integer do append_features(Foo); end; end'
-e:1:in `append_features': refinement module is not allowed (ArgumentError)
        from -e:1:in `block in <module:Bar>'
        from -e:1:in `refine'
        from -e:1:in `<module:Bar>'
        from -e:1:in `<main>'
```


----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-94714

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106131] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
                   ` (2 preceding siblings ...)
  2021-11-18  6:14 ` [ruby-core:106117] " shugo (Shugo Maeda)
@ 2021-11-18  9:55 ` Eregon (Benoit Daloze)
  2021-11-19  2:08 ` [ruby-core:106165] " shugo (Shugo Maeda)
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: Eregon (Benoit Daloze) @ 2021-11-18  9:55 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by Eregon (Benoit Daloze).


Sounds good.
Could you please add tests in ruby/spec to track those changes, under `core/refinement`?
The structure can be generated with `../mspec/bin/mkspec -b core -c Refinement`.

----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-94729

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106165] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
                   ` (3 preceding siblings ...)
  2021-11-18  9:55 ` [ruby-core:106131] " Eregon (Benoit Daloze)
@ 2021-11-19  2:08 ` shugo (Shugo Maeda)
  2021-12-27 20:14 ` [ruby-core:106844] " jeremyevans0 (Jeremy Evans)
  2022-01-05  9:00 ` [ruby-core:106971] " shugo (Shugo Maeda)
  6 siblings, 0 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2021-11-19  2:08 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by shugo (Shugo Maeda).


Eregon (Benoit Daloze) wrote in #note-6:
> Sounds good.

Thanks.

> Could you please add tests in ruby/spec to track those changes, under `core/refinement`?
> The structure can be generated with `../mspec/bin/mkspec -b core -c Refinement`.

OK, I'll add tests after implementing these changes after the release of Ruby 3.1.

----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-94768

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106844] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
                   ` (4 preceding siblings ...)
  2021-11-19  2:08 ` [ruby-core:106165] " shugo (Shugo Maeda)
@ 2021-12-27 20:14 ` jeremyevans0 (Jeremy Evans)
  2022-01-05  9:00 ` [ruby-core:106971] " shugo (Shugo Maeda)
  6 siblings, 0 replies; 8+ messages in thread
From: jeremyevans0 (Jeremy Evans) @ 2021-12-27 20:14 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by jeremyevans0 (Jeremy Evans).


I've submitted a pull request to implement this: https://github.com/ruby/ruby/pull/5358

----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-95655

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* [ruby-core:106971] [Ruby master Feature#18270] Refinement#{extend_object, append_features, prepend_features} should be removed
  2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
                   ` (5 preceding siblings ...)
  2021-12-27 20:14 ` [ruby-core:106844] " jeremyevans0 (Jeremy Evans)
@ 2022-01-05  9:00 ` shugo (Shugo Maeda)
  6 siblings, 0 replies; 8+ messages in thread
From: shugo (Shugo Maeda) @ 2022-01-05  9:00 UTC (permalink / raw
  To: ruby-core

Issue #18270 has been updated by shugo (Shugo Maeda).


jeremyevans0 (Jeremy Evans) wrote in #note-8:
> I've submitted a pull request to implement this: https://github.com/ruby/ruby/pull/5358

Thank you.  I've approved it, but it has conflicts with my commits....
Could you merge it resolving conflicts?


----------------------------------------
Feature #18270: Refinement#{extend_object,append_features,prepend_features} should be removed
https://bugs.ruby-lang.org/issues/18270#change-95799

* Author: shugo (Shugo Maeda)
* Status: Assigned
* Priority: Normal
* Assignee: shugo (Shugo Maeda)
----------------------------------------
Refinement#{extend_object,append_features,prepend_features} are not useful and should be removed.

How about to deprecate them in Ruby 3.1 and remove in Ruby 3.1?




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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-01-05  9:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-26 10:20 [ruby-core:105805] [Ruby master Bug#18270] Refinement#{extend_object, append_features, prepend_features} should be removed shugo (Shugo Maeda)
2021-11-17  7:06 ` [ruby-core:106106] [Ruby master Feature#18270] " shugo (Shugo Maeda)
2021-11-17  7:58 ` [ruby-core:106107] " shugo (Shugo Maeda)
2021-11-18  6:14 ` [ruby-core:106117] " shugo (Shugo Maeda)
2021-11-18  9:55 ` [ruby-core:106131] " Eregon (Benoit Daloze)
2021-11-19  2:08 ` [ruby-core:106165] " shugo (Shugo Maeda)
2021-12-27 20:14 ` [ruby-core:106844] " jeremyevans0 (Jeremy Evans)
2022-01-05  9:00 ` [ruby-core:106971] " shugo (Shugo Maeda)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).