Strong and weak types, how static types and dynamic type languages are differentiated

Source: Internet
Author: User

Strongly typed and weakly typed

If a language rarely has an implicit conversion type, it means that he is a strongly-typed language. If you do this often, it means that he is a weakly typed language. Java, C + +, and Python are strongly typed languages. Php,javascript and Perl are weakly typed languages

static types and dynamic types

The language at compile-time check type is a static type language, and the language of the check type at run time is a dynamic language. A static type requires a declared type. Fortran and Lisp are the first two languages. They are static type language and dynamic type language, respectively.

Static typing makes it easy for some tool compilers and Ides to parse code, identify errors, and provide other services (optimizations, refactoring, and so on). Dynamic typing facilitates code reuse, fewer lines of code, and allows interfaces to naturally become protocols without early implementation.

Strong and weak types, how static types and dynamic type languages are differentiated

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.