News for hackers. Stuff that matters.
Re:Writing JavaScript without a build system by Waterluvian on Thursday February 16, 2023 @06:10PM (#34828019)
A lightning rod of an idea I’m sure, but would it help if typescript was accepted by browsers but ignored? Then I can write my typings in-line rather than in comments, and check them, but not have to transpile.

I guess “enum” as a special snowflake would fail this.

Where I’m coming from is that I can live without most build steps for a small project… but I can’t live without typescript.

Re:Writing JavaScript without a build system by ty___ler on Thursday February 16, 2023 @06:11PM (#34828045)
Already being proposed! Would be really cool https://devblogs.microsoft.com/typescript/a-proposal-for-typ...
Re:Writing JavaScript without a build system by shadowgovt on Thursday February 16, 2023 @06:51PM (#34828505)
Python typing kind of went in that direction.
Re:Writing JavaScript without a build system by textninja on Thursday February 16, 2023 @07:59PM (#34829217)
I can happily live without TypeScript (ka-chow) but at the same time I don’t see why not.