Vita Rara: A Life Uncommon

Agreed.... but

Ok, so there is a means of implementing a Java interface without implementing the whole thing using the as keyword. I'd forgotten about this. It's been a while since I've moved over to Ruby full time.

With that acknowledgement it doesn't address my use case. As far as I know there is no way to declare a class definition that implements an interface without implementing the complete interface in the definition.

I personally look at the "as" method as a technique that is used inline in code, not as a declared before thing. (Unless you want to use a more prototype based style, and clone the said object you did the "as" on.)

I still give the point to Ruby, but then again I would. ;)

Mark

Reply

Please solve the math problem above and type in the result. e.g. for 1+1, type 2
  • Allowed HTML tags: <a> <img> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre> <h1> <h2> <h3>
  • Lines and paragraphs break automatically.
More information about formatting options