News for hackers. Stuff that matters.

_gruntled

Re:Airpass – easily overcome WiFi time limits on Sunday June 22, 2025 @05:40PM (#44350533)
“every major release” lol you mean the single major release that has ever happened since GA?
Re:Svelte is migrating from TypeScript to JSDoc on Wednesday May 10, 2023 @06:19PM (#35894262)
But that's the thing, it's _not astonishing_. It _would_ be astonishing if we were abandoning typing Svelte. We're not. We're not even abandoning TypeScript -- the whole project will still run `tsc` and enforce complete type-safety, it just won't use the compiled output. This is _abandoning one syntax for another_ because one syntax doesn't require a build step and a huge toolchain to run and debug.
Re:Svelte is migrating from TypeScript to JSDoc on Wednesday May 10, 2023 @05:41PM (#35893903)
We're using an automated tool to do the gross conversion, then combing through fixing the issues. There's a reason the PR's a draft, dammit! :lol: Don't worry, _no_ type-safety will be lost, internally or externally.
Re:Svelte is migrating from TypeScript to JSDoc on Wednesday May 10, 2023 @04:35PM (#35893118)
> It's also a really contrarian viewpoint about typescript which is really popular.

I really, really don't get the controversy here. JSDoc _is_ TypeScript, just with a syntax that's valid JavaScript (on account of it living in comments). This means it doesn't have to be built to run, but still gets all of the typing goodies regular TypeScript does. The end-user code authoring experience is the same or better.

> To completely switch over to js and then set types that way seems regressive.

"It's regressive to use a fully-JS TypeScript syntax instead of using dozens of tools on top of regular TypeScript to achieve the same outcome" is quite a spicy take.