extends and implements

Alex Rønne Petersen xtzgzorex at gmail.com
Mon Nov 7 10:35:01 PST 2011


On 07-11-2011 19:22, %u wrote:
> Hello.
>
> I know D isn't Java, but one trivial thing I liked about Java is
> the introduction of 'extends' and 'implements' as keywords as ways
> to clarify the class relationships when defining a class.  You
> know:
>
> class Subclass extends SuperClass implements AnInterface {
> ...
> }
>
> Will they ever add this in to D?  If not, why not?
>
> thanks.

Programming isn't natural language (or some variation thereof). I don't 
see what's wrong with using ':' for this. It's clear what it does, and 
not ambiguous in any way.

- Alex


More information about the Digitalmars-d-learn mailing list