logoalt Hacker News

Waterluvianyesterday at 11:09 PM1 replyview on HN

> Typescript somehow did it better

I don’t think JavaScript’s syntax was ever designed with the idea that TypeScript would one day exist. Yet somehow it feels like it left the perfect open spaces for TS to later occupy.


Replies

frollogastonyesterday at 11:46 PM

They did get lucky with that. The Python type syntax ended up being similar, but the implementation of type-checking is confusing, also it was annoying how you needed to import the types of basic collections for a while.