Skip to content
This repository has been archived by the owner on Nov 18, 2020. It is now read-only.

Issues with sealed semantics #2

Open
WalkerCodeRanger opened this issue Feb 28, 2018 · 0 comments
Open

Issues with sealed semantics #2

WalkerCodeRanger opened this issue Feb 28, 2018 · 0 comments
Labels
semantics deals with changing the language semantics

Comments

@WalkerCodeRanger
Copy link
Member

Sealed may not make sense because every class defines both an interface and the class itself. It doesn't make sense to say an interface is sealed. Maybe the sealed keyword means that you can't inherit from it but you can implement the interface. There could be a different keyword that blocks implementing the interface when required for security reasons, but that still seems problematical.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
semantics deals with changing the language semantics
Development

No branches or pull requests

1 participant