Project

General

Profile

Actions

Feature #21287

open

Remove SortedSet autoload and set/sorted_set

Added by jeremyevans0 (Jeremy Evans) 8 days ago.

Status:
Open
Assignee:
-
Target version:
-
[ruby-core:121746]

Description

When implementing core Set, I moved the SortedSet autoload from lib/set.rb to prelude.rb. However, since this autoload only works if the sorted_set gem is installed, I don't think it's a good idea to have in core. I would like to remove it. I've submitted a pull request that removes it: https://github.com/ruby/ruby/pull/13188 .

I'm not sure whether people would prefer a deprecation warning before removal, to alert users who have the sorted_set gem installed and are relying on the autoload. Previously, the SortedSet autoload was only setup if you had already referenced Set to force loading lib/set.rb. So Set; SortedSet worked, but SortedSet; Set did not. If people would prefer a deprecation warning, I think it's fine to deprecate in 3.5 and remove in 3.6, and I can submit a separate pull request for that approach.

No data to display

Actions

Also available in: Atom PDF

Like0