Hacker News new | past | comments | ask | show | jobs | submit login

> who want to program with comments?

TypeScript supports providing types via JSDoc comments[1]. This gets you use all the IDE language features you'd get using TS, including highlighting type errors. I actually use this all the time, since I have plenty of scripts that are complex enough that I want type checking but not complex enough to warrant a compilation step.

There's also Google's Closure Compiler[2], which uses JSDoc for its JS type annotations.

[1]: https://www.typescriptlang.org/docs/handbook/jsdoc-supported...

[2]: https://developers.google.com/closure/compiler




Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: