Re:Rails is not written in Ruby
by ratww on Friday February 04, 2022 @07:18PM
(#30215516)
> The former, the extension has so many issues, it messes up namespacing, it's unclear where it came from, etc. etc
That depends on the implementation. A monkey-patch is definitely problematic, but when it's properly scoped, like C# extensions, Rust Traits or Ruby Refinements, it's quite elegant.
That depends on the implementation. A monkey-patch is definitely problematic, but when it's properly scoped, like C# extensions, Rust Traits or Ruby Refinements, it's quite elegant.