Тёмный
No video :(

"Understanding TypeScript's Structural Type System" by Drew Colthorp 

Strange Loop Conference
Подписаться 83 тыс.
Просмотров 14 тыс.
50% 1

I was wrong. I thought TypeScript was something like a Java-ey type system layered atop JavaScript, bringing a dose of brittleness and losing the flexibility I appreciated about the warty-yet-ubiquitous multi-paradigm language.
But that's not it at all! TypeScript radically improves the JavaScript development experience by providing a flexible, light-weight type system for modern EcmaScript. It does so while maintaining a delicate balance: adding a way to enforce assumptions and invariants without removing the flexibility prized by dynamic language developers. This works because TypeScript's type system is structural and not nominal - that is, based on shapes of data instead of identities of types.
Come see what's cool and exciting about TypeScript's defining feature. We'll show what differentiates a structural type system from a nominal one; how key features of TypeScript provide a powerful language to express invariants about your system; and how TypeScript leverages its knowledge of what code implies about the shapes of data to avoid most of the type system nuisances that put some developers off of statically typed languages.
Drew Colthorp

Опубликовано:

 

5 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 10   
@justinkim7202
@justinkim7202 5 лет назад
This is the exactly what I was looking for for months! I couldn't figure out all these fancy cryptic typings in the TypeScript definitions of some npm modules and I finally get it now. Thank you so much for this talk!
@impankratov
@impankratov 5 лет назад
Very good explanation of some basic typescript capabilities!
@uris77
@uris77 5 лет назад
fp-ts is a good library that offers things like Maybe, Task, etc.
@nikosc
@nikosc 4 года назад
This was unexpectedly great
@JosephCaburnay
@JosephCaburnay 4 года назад
This is so awesome that liking it is not enough.
@dawid_dahl
@dawid_dahl 8 месяцев назад
Btw, loved the talk. Thanks a lot! 🙏🏻
@rrr00bb1
@rrr00bb1 2 года назад
This is similar to Go. You just need promises to the compiler, so that it doesn't de-reference things that don't exist.
@nanman_chief
@nanman_chief 2 года назад
but Go is nominal typed.
@aviflax
@aviflax 5 лет назад
I loved this talk!
@krzysztofgrzybek6695
@krzysztofgrzybek6695 5 лет назад
Solid!
Далее
"Hackett: a metaprogrammable Haskell" by Alexis King
33:40
TypeScript Types Deep Dive
55:38
Просмотров 3,5 тыс.
"Type-Driven API Design in Rust" by Will Crichton
40:57
Conditional Types - Advanced TypeScript
23:10
Просмотров 37 тыс.
"Type-Driven Program Synthesis" by Nadia Polikarpova
39:40
Utility Types - Advanced TypeScript
35:33
Просмотров 69 тыс.