Skip to content

Latest commit

 

History

History
160 lines (114 loc) · 5.14 KB

readme.md

File metadata and controls

160 lines (114 loc) · 5.14 KB

TS unsound behavior

Presentation - https://slides.com/buggy/deck-26cbbd

Slides - ./slides-deck-*.html

Video - https://www.youtube.com/watch?v=5j2GrY5HBoI

Article - https://habr.com/ru/post/492106/

'homework' solution

Proposals:

Bonus:

Suggestions:

Proposal:

Suggestions:

  • Opaque type for primitives, private fields for classes

Proposal:

Suggestions:

  • Either monad

Proposal:

Suggestions:

  • Don’t mutate data

Proposal:

Suggestions:

  • Type Guard
  • Overloading

Unprocessed

THEORY (extra)

Video

Article

Math related topics:

TS, missed parts

Extra:

  • Linear type systems (every variable is used exactly once) Such systems are useful for constraining access to system resources such as files, locks and memory by keeping track of changes of state that occur and preventing invalid states https://en.wikipedia.org/wiki/Substructural_type_system
  • Session types can be thought of as “types for protocols”