Issue #5555 has been updated by Sean Bachmair.


The `include?`, `start_with?`, etc. issue is one of my very few gripes about this most beautiful of all languages. Is this the last word on this? 

I'm puzzled at the the no third-person-singular naming convention, since 99.9% of my variables are in the third-person singular. I've never once used a variable called `you`, nor have I ever written code that looks like `does_it.include?` What I have written is a million lines of code like `if my_array.include? item` and `string.start_with? char`, which would read a lot better as `if my_array.includes? item` and `string.starts_with? char`. 

Obviously actually changing these is a non-starter for compatibility reasons, but I don't see any downside to aliasing new third-person singular forms to their second-person equivalents. If there's really no chance at this I might take a stab at the `english_grammar` gem, but I think it'd be a lot better in the language itself.

----------------------------------------
Feature #5555: rename #include? to #includes?
https://bugs.ruby-lang.org/issues/5555#change-62928

* Author: Alexey Muranov
* Status: Rejected
* Priority: Normal
* Assignee: Yukihiro Matsumoto
* Target version: 
----------------------------------------
Shouldn't the #include? method be renamed to #includes? ?
I think this will be closer to correct English and consistent with #has_key? method (not #have_key?).



-- 
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>