Since statically typed programming languages do type checking (verifying and enforcing the constraints of types) at compile-time, one has to ensure type consistency at compilation stage itself.
However, for a language like Python, we can leverage different behaviours for different data types at runtime by making use of functions like isinstance()
What I want to know about is has anyone been able to come up with a design patter (even for a specific use case) that is not possible to be implemented in a statically typed programming language?
Aucun commentaire:
Enregistrer un commentaire