3 ms·
> JavaScript would minimally need to add syntax for things like type annotations on variables and functions (..) however, (..) parameter properties would be ou
by Vinnl 5y ago
> JavaScript would minimally need to add syntax for things like type annotations on variables and functions (..) however, (..) parameter properties would be out of scope for this proposal
I'm not sure what that last part means, but it doesn't mean that type annotations for function parameters are out of scope, right?
Either way, a big step, congrats to the authors for finding the courage to undertake it!
Edit: no it's not [1], though I'm still not sure what it does mean.
[1] https://github.com/giltayar/proposal-types-as-comments#type-annotations https://github.com/giltayar/proposal-types-as-comments#type-...
- uallo 5y agohttps://www.typescriptlang.org/docs/handbook/2/classes.html#parameter-properties https://www.typescriptlang.org/docs/handbook/2/classes.html#...
- Vinnl 5y agoHeh, it's funny how one can have quite a bit of experience with a language, yet remain completely ignorant of parts of it (pretty much everything related to classes, in my case). Thanks!
- replygirl 5y agohonestly, if you want an enlightening tour of the language, contemporary angular is the perfect guide
- Vinnl 5y agoWell, my goal is not to know all the nooks and crannies of TS-the-language, but just to reap its benefits. There's a reason I haven't interacted with classes yet, and that same reason holds for why I'm not using Angular :)