[#100689] [Ruby master Feature#17303] Make webrick to bundled gems or remove from stdlib — hsbt@...
Issue #17303 has been reported by hsbt (Hiroshi SHIBATA).
11 messages
2020/11/02
[#100852] [Ruby master Feature#17326] Add Kernel#must! to the standard library — zimmerman.jake@...
Issue #17326 has been reported by jez (Jake Zimmerman).
24 messages
2020/11/14
[#100930] [Ruby master Feature#17333] Enumerable#many? — masafumi.o1988@...
Issue #17333 has been reported by okuramasafumi (Masafumi OKURA).
10 messages
2020/11/18
[#101071] [Ruby master Feature#17342] Hash#fetch_set — hunter_spawn@...
Issue #17342 has been reported by MaxLap (Maxime Lapointe).
26 messages
2020/11/25
[ruby-core:100711] [Ruby master Feature#16043] `$LOAD_PATH.resolve_feature_path` should not raise
From:
eregontp@...
Date:
2020-11-04 10:46:36 UTC
List:
ruby-core #100711
Issue #16043 has been updated by Eregon (Benoit Daloze). Agreed, I added it to the next dev-meeting agenda (#17299) ---------------------------------------- Feature #16043: `$LOAD_PATH.resolve_feature_path` should not raise https://bugs.ruby-lang.org/issues/16043#change-88355 * Author: deivid (David Rodr刕uez) * Status: Open * Priority: Normal ---------------------------------------- When I first tried this method, I was expecting it to return `nil` when the given feature is not found. This is because I read in the docs and discussion that this method only searches the feature in the LOAD_PATH, but does not attempt to load it. Raising a load error makes it look that this method tries to load the feature, but I don't think it does that. Also returning `nil` seems friendlier to me because the "feature not found" case is more like an expected outcome of the method than a real error condition, so in most usages this error will actually be rescued for control flow. I attach a patch with the change, and link to the GH PR: https://github.com/ruby/ruby/pull/2317. ---Files-------------------------------- 0001-LOAD_PATH.resolve_feature_path-should-not-raise.patch (1.13 KB) -- 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>