«« Next » « Previous
«« Next » « Previous

Link Details

Link 36242 thumbnail
User 111696 avatar

By bloid
via pushing-pixels.org
Published: Aug 21 2007 / 12:11

Unlike with strong-typed languages (such as Java), Ruby doesn’t care about the actual type of the object being passed to a method, as long as it has all the methods that are used in that specific context. Leaving the relative merits and shortcomings of this approach aside for another entry, is this something that can be used in Java? Or, more interestingly, is it something that is used in Java? The answer is quite simple - yes. And not in third-party code; in the JDK itself.
  • 12
  • 4
  • 1099
  • 430

Comments

Add your comment
User 225162 avatar

herval replied ago:

0 votes Vote down Vote up Reply

please, no IMayBeSomething interfaces... pleeease...

User 160542 avatar

Kirill Grouchnikov replied ago:

0 votes Vote down Vote up Reply

???

User 224073 avatar

michaelklishin.myopenid.com replied ago:

0 votes Vote down Vote up Reply

Ruby is strong-typed, it is. It's not statically typed. Go read Wikipedia on this before posting.

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.