From: Doug Glidden <41mortimer@...> Date: 2008-08-30T03:42:52+09:00 Subject: Re: Class === Doug Glidden wrote: > Robert Dober wrote: > [snip] >> Seriously #is_a? is more readable for sure but #=== has the advantage >> to pinpoint the possibility of using a *case* statement. >> >> Cheers >> Robert > > OT: > > All true, but also consider the fact that === requires one to remember > what it means (=== vs. ==), which is not particularly intuitive (as > opposed to is_a?, which is a term most students get drilled into their > heads pretty much the first day of their first OO programming course). > The confusion is further compounded by the fact that (if I remember my > JS correctly) the functionality of === and == in Ruby are exactly > reversed from their functionality in JavaScript. > > Doug Even more OT: Of course, the beauty of Ruby is that they're both available, so you can use whichever one makes more sense to you! -- Posted via http://www.ruby-forum.com/.