Does Ruby Have Too Many Equality Tests?
Eric Anderson talks about the differences between the myriad of equality tests that Ruby provides. Explanations and examples of when to use ==, ===, eql?, equal? and =~. A guest blog post on RubyLearning.
Eric Anderson talks about the differences between the myriad of equality tests that Ruby provides. Explanations and examples of when to use ==, ===, eql?, equal? and =~. A guest blog post on RubyLearning.
Post a comment