Dynamic language/dynamic type language/static type language

Source: Internet
Author: User
  • 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.