News for hackers. Stuff that matters.
Re:Statically-typed error handling in Python using Mypy by Reelin on Sunday December 08, 2019 @02:47PM (#21737822)
C is the wrong comparison to make here - it's extremely low level. Java or perhaps C++ would be much closer.

* Ahead of time compiled languages reduce flexibility but allow the compiler to do more reasoning about the system.

* Statically typed languages allow the compiler to reason about the assignments you make and methods you call. If the language is also AOT compiled, you avoid crashing at runtime.

* Dynamically typed languages significantly reduce boilerplate and avoid the mental effort of expressing an idea in a rigorously typed manner. It's the "hold my beer" approach.

Re:Statically-typed error handling in Python using Mypy by pytester on Sunday December 08, 2019 @03:08PM (#21737966)
C is a good example precisely because it highlights the fact that explicit typecasts and memory safety are a LOT better at preventing bugs than static types.