🔤Strongly Typed Language
Also known as Strong Typing, Weakly Typed Language, Weak Typing
A language that will not mix a word and a number on its own.
Think of it like
It is like a shop that will not take a toy coin for real apples.
Example
Adding the text "1" to the number 1 is an error in Python. In JavaScript, the same line gives the text "11".
Why it matters
Quiet changes cause strange bugs that are hard to find. A strong language stops at the line that is wrong.
Definition
Example code
python
print("1" + 1) # Python: TypeError. JavaScript gives "11".Common mistake
Key takeaways
- 1No quiet mixing. Types must match.
- 2Weak converts. It guesses and carries on.
- 3Not static. A separate question from when.