Photo by israel palacio on Unsplash
There are 2 separate concepts to understand:
-
Strong vs Weak - Can variables change type?
- Strong says no.
- Weak says yes.
-
Static vs Dynamic - When do we check variable type?
- Static checks at compile time.
- Dynamic checks at runtime.
Examples
💪 Strong | 😖 Weak | |
---|---|---|
🥶 Static | Java, C++ | ? |
👟 Dynamic | Python, Ruby | JavaScript, PHP |
Top comments (2)
Perfect summary! Short and sweet.
Thanks so much! That's what I was going for