[Oberon] Protocols (interfaces) in Oberon-2
andreas_pirklbauer at yahoo.com
Sun Oct 25 14:46:08 CET 2020
> Do you support something like the following?
> TextDesc = RECORD (TextProtocol.TextDesc, WriteProtocol.WriterDesc) END ;
Yes! But multiple inheritance has it own set of issues, as you’re surely aware.
It adds a host of new complexities which are well documented in the literature.
Witness the Go or the Java implementations that you mentioned.
But leaving multiple inheritance aside, I wonder whether can make a point
for adopting protocols. So far, I haven’t found any. It seems like one of those
features that shouldn’t be there in the first place. Or I am wrong?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Oberon