Actions
Feature #7384
openRename #each_with_object to #each_with
Status:
Open
Assignee:
-
Target version:
-
Description
I propose that #each_with_object be renamed to #each_with, for the following reasons:
-
The original name is too long. When general purpose methods have long names it tends to deter developers from using them even when they are a good fit to the use case.
-
The last word, "object", is completely redundant. All methods that take an argument could say the same thing. e.g. Array#push is not named #push_object though that is obviously what it means.
-
The change need not effect backward compatibility b/c #each_with_object can remain an alias of #each_with for as long as deemed necessary.
Actions
Like0
Like0Like0Like0Like0