News for hackers. Stuff that matters.
Re:The type system is a programmer's best friend by icedchai on Saturday November 05, 2022 @01:56PM (#33483877)
I find debuggers more valuable with dynamically typed languages, especially Python. It's handy to be able to drop a `breakpoint()` in the middle of a script when you have no idea what a function is actually returning. The happens more often than you might think.
Re:The type system is a programmer's best friend by bornfreddy on Saturday November 05, 2022 @05:52PM (#33486242)
Of course, when this happens the bug you are hunting is not your only problem. You really should clean up the code to make it clear what is being returned from the function.