|
|
|
|
|
by zarzavat
704 days ago
|
|
> Those type hints are not used at runtime for performance. This is not a requirement for a language to be statically typed. Static typing is about catching type errors before the code is run. > Type hint a var as a string then set it to an int, that code still gonna try to execute. But it will fail type checking, no? |
|
In static typing the types of variables don't change during execution.