All Topics
All Topics
Technology
Technology
Design
Design
Programming
Programming
Science
Science
News
News
Gaming
Gaming
Entertainment
Entertainment
Business
Business
Finance
Finance
Sports
Sports
Health
Health
Food
Food
Travel
Travel
Art
Art
Music
Music
Books
Books
Education
Education
Politics
Politics
Personal
Personal
No algorithm. No AI slop. No ads. Just RSS. Pro-human. Indie writers. Real journalism. Open web. Chronological. Hand toasted.

Understanding Svelte's TypeScript to JSDoc Transition and the Static Typing Debate

By

culi

5mo ago· 4 min readenInsight

Summary

The article discusses the 2023 controversy around Svelte's internal refactoring PR that removed TypeScript, which was misinterpreted as a rejection of static typing. It explains that the move was actually about using JSDoc for type checking while maintaining JavaScript, and explores the broader debate about TypeScript vs JavaScript in web development, including perspectives from developers like Dan Abramov and Rich Harris.

Key quotes

· 4 pulled
The premier darling of web frameworks ostensibly rejecting the benefits of static typing was a big deal.
Rich Harris felt compelled to hop onto HN and explain how this was 'not a vindication of anti-TypeScript sentiment'.
The move was about using JSDoc for type checking while maintaining pure JavaScript code.
This sparked broader discussions about TypeScript adoption, developer preferences, and the trade-offs between static typing and JavaScript flexibility.
Snippet from the RSS feed
In May of 2023 an internal refactoring PR from the Svelte repo made it to the front page of the Hacker News forums. The (superficially) controversial PR seem...

You might also wanna read