On Jul 20, 2011, at 11:29 AM, Jed Schneider wrote:

> for comparing objects properties, which notation is considered most idiomatic 
> and best practice?

Traditionally it was ==, but Ruby emits a warning. I've personally been moving 
toward eq, and if I had it to do over again that's all that would be there. I 
have no intention, however, of deprecating == as there is a wealth of code out 
there that uses it and users who prefer it in spite of the warning from Ruby.

HTH,
David

_______________________________________________
rspec-users mailing list
rspec-users@rubyforge.org
http://rubyforge.org/mailman/listinfo/rspec-users

Reply via email to