Hacker News new | ask | show | jobs
by baybal2 1655 days ago
What you think of more *-Scripts built on top of JS keeping coming? Are you not afraid of TypeScript following the CoffeScript into obscurity because of WebDev community keeping chasing the new thing?

This is all when vanilla JS keeping very energetically absorbing new features from *-Scripts thanks to TC39 seemingly intentionally picking them?

1 comments

No, I think this will eventually stop. JavaScript is getting more mature. I would not be surprised if the TypeScript syntax will be legacy in a few years, because JS caught up.
Is there some proposal for making the type syntax valid? No type checking just JavaScript parsing code with types and ignoring it.
No such proposal exists right now, but this will be a point of immediate focus for me.
How will Deno react if that happens?
Deno will behave just like Chrome or Firefox would: we ignore the checks when running your code. We would have a `deno check` subcommand to perform a typecheck. You could optionally run this automatically before a `deno run` by passing a `--check` flag.