From: Robert Klemme Date: 2010-07-18T16:35:03+09:00 Subject: Re: ruby abstraction On 07/18/2010 06:53 AM, David Masover wrote: > On Saturday, July 17, 2010 08:21:10 pm James O'Brien wrote: >> I have found the concept of an interface invaluable in my Java programming >> and wondered if there were an equivalent concept in Ruby? > > Yes and no. :-) > Yes, there is certainly a concept of an "interface" -- this is an abstract > concept that really applies to all languages. But no, it's not built-in to the > language. > > More specifically, the Java concept of an interface is only really needed > because Java is statically typed. > >> as a thought-experiment I >> propose Java without interfaces would be worse > > Probably. You could not have Java without interfaces. You would at least have to drop static typing and this would be a major change to the language. I don't think you would still call the result of this operation "Java". Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/