4 ms·
In theory it's nice that the compiler would catch those kinds of problems, but in practice it doesn't matters.
by vhcr 2y ago
In theory it's nice that the compiler would catch those kinds of problems, but in practice it doesn't matters.
- GTP 2y agoIt can matter also in practice. Once I was trying some Python ML model to generate images. My script ran for 20 minutes to then terminate with an exception when it arrived at the point of saving the result to a file. The reason is that I wanted to concatenate a counter to the file name, but forgot to wrap the integer into a call to str(). 20 minutes wasted for an error that other languages would have spotted before running the script.
- cozzyd 2y agoIt's very hard to write long-running daemons in python partially for this reason, when you make a typo on a variable or method name in an uncommon code path.