Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Ruby Refinements landed in trunk (wyeworks.com)
16 points by spastorino on Aug 3, 2012 | hide | past | favorite | 5 comments


A much needed change. With Requirements, libraries that you include in your projects can sandbox their monkeypatches to only affect their classes.

Likewise, if the purpose of a library is to monkeypatch a standard class, you can selectively include that monkeypatch only where needed in order to isolate any potential side effects.


Encouraging bad behaviour by making it safer to behave badly.


If it is safe, it is no longer bad behavior.


No, that just means it's safe.


It was bad behaviour because it was unsafe. Now it is safe.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: