- Dynamic language
- A program can change its structure at run time: New functions can be introduced, existing functions can be deleted, i.e. structural changes
- As well-known ecmascrip (JavaScript) is a dynamic language
- In addition, Ruby and Python are also dynamic languages
- C and C + + do not belong to dynamic languages
- Dynamic type language
- Refers to the type check is done at run time
- Static type language
- Analysis
- Type checking is judged before running (such as the compile phase), such as C # and Java are statically typed languages
- Static type language in order to achieve polymorphism, some types of authentication methods are adopted, such as inheritance, interface
- Dynamic type language is not required, so the general dynamic language will adopt dynamic typing, often appear in the scripting language
- In addition, whether a dynamic type language is not type-safe with this language is completely irrelevant
- Advantages and Disadvantages
- Advantages: Structural specifications, easy to debug, convenient type safety
- Cons: Write more type-related code for this
Dynamic language/dynamic type language/static type language