AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Write a Static Type Checker
A linter is a thing that runs through the code continuously pre-processing to find issues based on style documentation. Linters often do static analysis where they try to point out things that are likely mistakes but not incorrect according to the language specification. Facebook developed Pyre which was written in OCaml which worked well with Facebook development workflow. Google developed something they called pie type which was actually itself written in Python and it was meant to sort of fit well in their static type checking needs at Google's gigantic monorepo.