Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But TS is not valid JS and nobody uses TS because they can write JS in a file with a different extension. You also get 0 benefit from running `tsc` on a JS file. You could argue that C is valid C++ so there's no reason to discern them either.




> You could argue that C is valid C++ so there's no reason to discern them either.

Only up to C90, and even modern C++ doesn’t fully implement modern C.

JS is a valid TS.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

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

Search: