RE: Proposing new warning
Andy Jones <[email protected]>
| Newsgroups | gmane.comp.lang.ruby.general |
|---|---|
| Message-ID | <[email protected]> |
> If I had a use case for requiring keys to be the same type I would > probably either subclass Hash or rely on a linter like RuboCop. I thought that subclassing the basic collection classes like Hash or Array was a bad idea? Because under the hood, their implementation was optimised, and it could lead to unforeseen effects? Of course, you can always use composition instead of inheritance. Click here to view Company Information and Confidentiality Notice.<http://www.jameshall.co.uk/index.php/small-print/email-disclaimer> Please note that we have updated our privacy policy in line with new data protection regulations. Please refer to our website to view the ways in which we handle your data. Unsubscribe: <mailto:[email protected]?subject=unsubscribe> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>