6 ms·
No different than any other symbol name in the global namespace though.
by bodyfour 12y ago
No different than any other symbol name in the global namespace though.
- dragonwriter 12y agoWell, yes, but there's a reason that you generally avoid using the global namespace, and open classes basically make extensions to classes have the same problems that globals have. (In Ruby, where open classes are a major and frequently-leveraged feature, this became a serious issue; hence, why Ruby 2.x introduced refinements as an alternative that provides much of the utility of open classes but with less opportunity for conflicts.)