Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Annotation to warn/deprecate about subclassing a class #6162
Currently there is only @deprecated, which warns about every usage of an element with that annotation.
The idea is to add an annotation which does apply to classes and warns about sub-classing the annotated class, but not the usage.
Use cases for this annotations is the communication of specific intents to users of the class:
See https://groups.google.com/d/topic/scala-internals/mvs3yQh1I_k/discussion for further discussion.