4 ms·
Wasn't there an overwhelming negative feedback for refinements? What was the rationale for still going ahead with them?
by saurabhnanda 13y ago
Wasn't there an overwhelming negative feedback for refinements? What was the rationale for still going ahead with them?
- regularfry 13y agoMatz has said we're getting them, so we're getting them.
- saurabhnanda 13y agoSure, he's the benevolent dictator (and the creator of language, itself), but he would've explained himself somewhere. About the benefits of refinements and how to deal with the downsides. Any links?
- regularfry 13y agoIf you've got the patience, https://bugs.ruby-lang.org/issues/4085#note-95 https://bugs.ruby-lang.org/issues/4085#note-95 is the ruby-core discussion. It really does boil down to "Matz says so."
- dragonwriter 13y ago> Wasn't there an overwhelming negative feedback for refinements? IIRC, there were concerns about the performance impact and maybe some other issues of the semantics of refinements -- particularly from maintainers of other Ruby implementations -- which is why there were originally marked "experimental". I believe that those have been addressed with input from the other implementors in 2.1.0.
- steveklabnik 13y agoEven then, a lot of us think the feature is absolutely terrible, performance was just one of the worst parts.