Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Writing Python Like Rust. Parent comment
You can break almost any python code by passing in the wrong type. The code throwing runtime type-errors IS the type checking.
The danger is only if the code happily operates on the wrong types and returns incorrect results.
There are no comments on this comment yet.
You can break almost any python code by passing in the wrong type. The code throwing runtime type-errors IS the type checking.
The danger is only if the code happily operates on the wrong types and returns incorrect results.