Re: Proposing new warning
Victor Shepelev <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <CANz6qHmGYjYQDwkt1nf1Y28-hbp6+7DkXWDLwQFqrEyi4u2kHQ@mail.gmail.com> |
You can use an official bug/proposal tracker: https://bugs.ruby-lang.org/ (it is open for anybody). About your proposal: I like the friendliness, but I am afraid there would be performance implications, probably. вт, 23 окт. 2018 г. в 15:47, Miguel A Salinas II <[email protected]>: > Hi all, > I’m wondering where to pitch an idea and implementation of a new warning. > I found that new ruby programmers get confused between strings and symbols > especially when using them as keys in hashes. I made a small change that > warns when there is a value in the hash with a symbol as its key but you > are trying to access it with the equivalent string. E.g. > hash = {this: “that”} > puts hash[“this”] > > Warning: no value stored for key “this”. Value found for equivalent symbol > key :this. Did you mean to use a symbol? > > Any pointers for how to propose this would be greatly appreciated. Thanks! > > - miguel > > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> > <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk> > Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>