10 ms·
> Dynamic types mean the constraints are known later. Don't you mean, constraints are found when the program throws an unexpected exception and leaves you with
by drpixie 3y ago
> Dynamic types mean the constraints are known later.
Don't you mean, constraints are found when the program throws an unexpected exception and leaves you with a largely meaningless stack dump :)
I'd rather have the system tell me "you can't do that" much earlier - at compile time, not run time.
I use python quite a bit, but hate the thought of all those never-exercised control paths, which only occur in the most unusual circumstances - and I know silly problems will show up when those paths do get executed :(
- BulgarianIdiot 3y agoWe're discussing performance. Dynamic types do not mean no type errors while you write code. It means the types can be variant at runtime.
- lolinder 3y agoYou latched on to the performance question, but the paragraph you were responding to was much broader. It's reasonable for someone to think you were actually responding to the full paragraph and not one phrase.