~/talk

Python's New Type Hints in Action… In JavaScript

Talkat PyCon Australia 2015 · 2015-07-31..08-04· [javascript, typescript]
slides:none on file

Claims that PEP 484 brings optional static typing to Python and that Python can learn from TypeScript’s experience. Demonstrations use the TypeScript compiler compiling away types, the typing module plus a type checker in Python 3.5, community stubs like DefinitelyTyped, and separate signature files (pyi stubs). Type inference and any enable gradual typing; TypeScript ships since 2012 (1.0) and thousands watched a keynote, and the approach compiles and interoperates without breaking existing code.

AI-written summary · about

  1. 0:00Intro
  2. 1:492008 Python 3 introduces function annotations
  3. 3:072015: PEP 484 Type Hints
  4. 3:52The Python feature addition process Stage 1: PEP is proposed and discussed • Stage 2: PEP is adopted Stage 3: Feature is added to the next Python release
  5. 8:50Consume a type-checked API get free type checking on your own code
  6. 9:33If the only thing you do is consume a typescript API, there's still benefit to type checking.
  7. 13:22Type constraints can be broken if you're confident they need to be.
  8. 15:13Third Party Interfaces
  9. 20:17Verifiable parameter/return type documentation Like doctests, but formal!
  10. 24:39Make type hints that are useful to your own context.
  11. 25:04Conclusion It's not the end of the world You don't have to if you don't want to There are benefits
~/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.