bloom-lang / bud

Prototype Bud runtime (Bloom Under Development)
http://bloom-lang.net
Other
854 stars 60 forks source link

Get rid of heinous monkeypatching #284

Closed neilconway closed 11 years ago

neilconway commented 11 years ago

The new runtime replaces a few fundamental methods in some builtin Ruby classes, like Array#==, Struct#==, and Struct#<=>. I suspect these replacements are buggy (e.g., adjusting == without also changing eql? and hash is suspicious). But aesthetically this is wrong anyway -- should be easy enough to avoid monkey patching such fundamental code.