Hacker News new | ask | show | jobs
by subwindow 4947 days ago
Just a reminder that the spec for refinements continues to change radically: http://bugs.ruby-lang.org/issues/4085

As far as I understand it the current spec is to have "using" be available only to main and only apply in the file scope. IMHO this makes the feature nearly useless.

1 comments

If you explore the topic, there are solid reasons from performance, to vm ports, to readability for why refinements have been curtailed. I'm quite happy with this. The original refinement support would have held ruby back, even if it had its uses.
^^ What an apologist...