News for hackers. Stuff that matters.
Re:Cold Showers by tene on Sunday June 19, 2022 @02:38AM (#31796759)
With static types, every function signature implicitly comes with built-in tests for free.
Re:Cold Showers by jacobsenscott on Monday June 20, 2022 @12:45AM (#31806381)
Not true because anyone can implement just part of an interface and throw "method undefined" for the methods they can't figure out how to implement. This happens all the time.
Re:Cold Showers by KptMarchewa on Monday June 20, 2022 @07:16AM (#31808924)
> Not true because anyone can implement just part of an interface and throw "method undefined" for the methods they can't figure out how to implement. This happens all the time.

How would that pass any code review, regardless of static or dynamic typing?

Re:Cold Showers by tene on Monday June 20, 2022 @02:03PM (#31813477)
The only time I have ever seen something like this is using `todo!()` while initially writing code. I have never seen someone check in code like this.

What kind of clown show of a programming org are you working at?

This is morally equivalent to "There's no point to having a safety on a gun, because the safety won't stop you from bashing someone in the face with the gun." If you really want to, you can throw exceptions or crash the process or call exit() or call system("shutdown -h now") anywhere in your codebase. That has nothing to do with a type system.