News for hackers. Stuff that matters.
Re:Writing Python Like Rust by bilsbie on Thursday June 29, 2023 @09:47AM (#36520334)
That sounds impressive but I feel like this might be a misunderstanding of Python.

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.