[Mono-list] Re: Is Objective-C support possible?
Patrik Sundberg
ps@radiac.mine.nu
Sat, 16 Feb 2002 00:15:53 +0100
On Fri, Feb 15, 2002 at 05:10:16PM -0000, Martin Coxall wrote:
> > Interfaces don´t bring implementation, mix-ins are more like multiple
> > inheritance just for methods...
>
> Mixins shouldn't bring implementation either, else you break encapsulation
> (there's a great rant on this in Gang of Four). If the Objective-C people
> can't understand good OO design, then it's no suprise it never took off.
mixins which carry implementation is used in dynamic languages such as Ruby
with very great results since objects aren't distinguised by (class)type
(methods can be added during runtime etc) but by what messages it responds to.
Some surely argues that this somehow breaks encapsulation but providing one
basic funcion (like each in Ruby) and using a mixin which uses this once
interface to provide a wide range of functions (eg Enumerable mixin in Ruby)
is a very powerfull concept for languages like Ruby.
If the CLR (I know little of the CLR yet..) doesn't support this kind of
behaviour then dynamic languages such as Ruby will have a hard time
socializing in the .NET framework - or have I gotten something wrong?
As you might have suspected I am interested in a Ruby.NET - could anyone
comment on things that would be problematic for such a project or why it would
be feasible?
--
---------------------------------------------------------------------------.
Patrik Sundberg Address: Rydsvägen 100C, 584 31 Linköping, Sweden |
Email: ps@raditex.se || ps@radiac.mine.nu |
Phone: +46 13 178567 || +46 707 602240 |
.---> Applied Physics and Electrical Engineering student |
|-----> Master of Science in Business Administration and Economics student |
|-------> UNIX/Programming consultant |
`--------------------------------------------------------------------------'