[#79440] [Ruby trunk Bug#13188] Reinitialize Ruby VM. — shyouhei@...
SXNzdWUgIzEzMTg4IGhhcyBiZWVuIHVwZGF0ZWQgYnkgU2h5b3VoZWkgVXJhYmUuCgoKTWFydGlu
6 messages
2017/02/06
[#79441] Re: [Ruby trunk Bug#13188] Reinitialize Ruby VM.
— SASADA Koichi <ko1@...>
2017/02/06
On 2017/02/06 10:10, shyouhei@ruby-lang.org wrote:
[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>
Hi,
15 messages
2017/02/15
[#79541] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/15
Em 15-02-2017 05:05, Daniel Ferreira escreveu:
[#79543] Re: Immutable Strings vs Symbols
— Daniel Ferreira <subtileos@...>
2017/02/16
Hi Rodrigo,
[#79560] Re: Immutable Strings vs Symbols
— Rodrigo Rosenfeld Rosas <rr.rosas@...>
2017/02/16
Em 15-02-2017 22:39, Daniel Ferreira escreveu:
[ruby-core:79480] [Ruby trunk Feature#5555] rename #include? to #includes?
From:
caesium2016@...
Date:
2017-02-08 14:56:39 UTC
List:
ruby-core #79480
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>