[ruby-core:118712] [Ruby master Feature#20656] Import Hash#except! from Active Support

Issue #20656 has been reported by willianveiga (Willian Veiga). ---------------------------------------- Feature #20656: Import Hash#except! from Active Support https://bugs.ruby-lang.org/issues/20656 * Author: willianveiga (Willian Veiga) * Status: Open ---------------------------------------- For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang version (Hash#except!). This feature request was created to address that. The new method except! should work exactly as describe on Ruby on Rails API reference: https://edgeapi.rubyonrails.org/classes/Hash.html#method-i-except-21 -- https://bugs.ruby-lang.org/

Issue #20656 has been updated by nobu (Nobuyoshi Nakada). Status changed from Open to Feedback willianveiga (Willian Veiga) wrote:
For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang version (Hash#except!).
The reason is stated there. Its behavior does not match what would be inferred from `Hash#except` and other bang methods.
The new method except! should work exactly as describe on Ruby on Rails API reference: https://edgeapi.rubyonrails.org/classes/Hash.html#method-i-except-21
Why does it need to be built-in? ---------------------------------------- Feature #20656: Import Hash#except! from Active Support https://bugs.ruby-lang.org/issues/20656#change-109248 * Author: willianveiga (Willian Veiga) * Status: Feedback ---------------------------------------- For some unknown reason, Hash#except! was not imported on #8499. We have Hash#except, but we don't have the bang version (Hash#except!). This feature request was created to address that. The new method except! should work exactly as describe on Ruby on Rails API reference: https://edgeapi.rubyonrails.org/classes/Hash.html#method-i-except-21 -- https://bugs.ruby-lang.org/
participants (2)
-
nobu (Nobuyoshi Nakada)
-
willianveiga (Willian Veiga)