Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
[ANN] Ducktator - A Duck Type Validator
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Ola Bini, post: 4528030"] I beg to differ, and according to the pick-axe, this interpretation is correct. Duck-typing isn't to *trust* your callers. Duck typing is to check if something quacks like a duck and walks like a duck. Well, me calling respond_to? checks if the object quacks and walks. What you are describing isn't a technique, it is the absence of a technique. -- Ola Bini ([URL]http://ola-bini.blogspot.com[/URL]) JvYAML, RbYAML, JRuby and Jatha contributor System Developer, Karolinska Institutet ([URL]http://www.ki.se[/URL]) OLogix Consulting ([URL]http://www.ologix.com[/URL]) "Yields falsehood when quined" yields falsehood when quined. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
[ANN] Ducktator - A Duck Type Validator
Top