2 ms·
Static typing doesn't mean type information being available. Most statically typed language allow some version of `let x = 5`. Similarly static types doesn't me
by YetAnotherNick 4y ago
Static typing doesn't mean type information being available. Most statically typed language allow some version of `let x = 5`. Similarly static types doesn't mean unsafe casting are not performed.
Also in the opposite direction, many dynamically typed language allows specifying types if you want to including python.
- the_only_law 4y ago> let x = 5 x still has static type, the compiler just infers it based on the assignment, the type information is still there. Agree that implicit/unsafe casting is still and issue in some languages though.