Open ChiriVulpes opened 5 years ago
This is definitely out of scope. Although it is an interesting feature too.
Regarding performance, I'd trade some performance for separation of concerns since this stuff is all early work.
We could imagine having many of these features bundled in a larger module for convenience. (something like typescript-tslint-extensions, which would provide missing features of the language in the linter).
Also, remember that this module is intended as a discussion / exploration around the override keyword in TypeScript. It is not ideal to have to rely on a linter for that.
(or
@sealed
)Example:
Caveats For Days:
@final
or not, which might not even be possible if the superclass method is in another file.@override
. So maybe that makes them a little more linked?Note: Does implementing
final
in TSLint make more sense than having it as a keyword in Typescript? I think in a way it could be more helpful, because consumers could still override if they really wanted to and knew what they were doing, vs being locked out completely (unless you were to like manually assign the method or sth)