Hash.new: print a deprecation warning when receiving keyword arguments (#7828)
[Feature #19236]
In Ruby 3.3, Hash.new shall print a deprecation warning if keyword arguments are passed instead of treating them as an implicit positional Hash.
Hash.new
This will allow to safely introduce a capacity keyword argument in 3.4
capacity
Co-authored-by: Jean Boussier [email protected]
Hash.new: print a deprecation warning when receiving keyword arguments (#7828)
[Feature #19236]
In Ruby 3.3,
Hash.new
shall print a deprecation warning if keyword argumentsare passed instead of treating them as an implicit positional Hash.
This will allow to safely introduce a
capacity
keyword argument in 3.4Co-authored-by: Jean Boussier [email protected]