~/talk

Strict Types in JavaScript

TalkinRussianat HolyJS 2021 Piter · 2021-04-20..04-23· [javascript, typescript]
links:none on file
slides:none on file

A short library (≈300 lines, published in Monika on GitHub) adds strict runtime typing to JavaScript without changing TypeScript. It uses Proxy and Symbol.toPrimitive to intercept property reads/writes and forbid binary operations, implements freeze-on-first-assignment (a field’s type is fixed at its first assignment), and deliberately throws errors on mismatches; examples run in the debugger and Node, but no performance measurements are provided.

AI-written summary · about

  1. 0:00Introduction
  2. 3:00Typing problems in JS/TS
  3. 11:42Prototype chain and constructors
  4. 23:10Strict typing with Proxies
  5. 35:18Symbol coercion restrictions
  6. 44:04Access methods in data structures
  7. 53:28TypeScript integration
  8. 1:03:00Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.