News for hackers. Stuff that matters.
Re:Goodbye TypeScript, hello native typing for JavaScript by adamredwoods on Thursday January 05, 2023 @07:22PM (#34269076)
Regarding point 2. Also, there's no way to run a build/compile step for running 'javascript' to catch these type errors before runtime. Would we bring Node into the CI just to catch those errors?

So you may be right, it seems typescript will still be around for enterprise at least.

Re:Goodbye TypeScript, hello native typing for JavaScript by brundolf on Thursday January 05, 2023 @07:34PM (#34269214)
> there's no way to run a build/compile step for running 'javascript' to catch these type errors before runtime

I don't think I follow what you mean here, can you clarify?

Re:Goodbye TypeScript, hello native typing for JavaScript by xsmasher on Thursday January 05, 2023 @11:40PM (#34271042)
Currently we run "tsc" to "compile" the code and tell us about type errors. "This method passes as string to something that expects a number" etc.

In a world where JS has type notation, we'd need a similar command that could analyze the code without running it.

Re:Goodbye TypeScript, hello native typing for JavaScript by brundolf on Thursday January 05, 2023 @11:48PM (#34271086)
tsc does that, but yes, you'd still have to run tsc which was part of my original point