3 ms·
I guess I didn’t understand your point because I think statically typed languages are more easy to use than Python, not less, as soon as the program is longer t
by umanwizard 7y ago
I guess I didn’t understand your point because I think statically typed languages are more easy to use than Python, not less, as soon as the program is longer than 500 lines or so.
- ehsankia 7y agoRight, but in python, especially with use of the third party libraries, I can glue together something using less than 20 lines of code. I once had a script that recorded the microphone, converted the waveform, passed it to TTS to turn it to text, translated it, then converted it back into audio and played it. All with under 30 lines of Python. Meanwhile with C++, just trying to manipulate some strings will take that many lines. I guess we have different definition of "easy to use".
- umanwizard 7y agoC++ is not the only statically-typed language. Can you elaborate on why Python's lack of type checking specifically (as opposed to any of the other ease-of-use features of Python) made it easier for you to write this program? Were there cases where you were using something that a statically typed language would have considered the "wrong" type for a function argument (or anything else), but it worked fine in Python?