3 ms·
I have no experience with TypeScript, but in general the downside of optional language features is when you're working with a team, and different people end up
by doodpants 10y ago
I have no experience with TypeScript, but in general the downside of optional language features is when you're working with a team, and different people end up using different dialects of the language.
- chimeracoder 10y agoThat doesn't really apply here, because type annotations have no runtime effect. They're effectively comments.
- SonicSoul 10y agoyou could say that about any high level language. i.e. that it's effectively metadata few levels above metal ignored at runtime. But it is relevant here because the relevant part is working with application code within a team half of which may choose to use optional features
- jaredklewis 10y agoThe content of comments isn't enforced by the compiler, so I would say they are not very comment-like.