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.
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
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