Simon Willison’s Weblog

Subscribe

Friday, 17th December 2021

TypeScript for Pythonistas (via) Really useful explanation of how TypeScript differs from Python with mypy. I hadn’t realized TypeScript leans so far into structural typing, to the point that two types with different names but the same “shape” are identified as being the same type as each other.

# 7:43 pm / python, typescript, mypy

2021 » December

MTWTFSS
  12345
6789101112
13141516171819
20212223242526
2728293031