Strongly typed language/weakly typed language, dynamic language/static language, compiled language/interpreted language (collation)

Source: Internet
Author: User

"Strongly typed language/weakly typed language"

    • Strongly typed languages tend to be intolerant of implicit type conversions. Strongly typed languages are Java, C #, Python, and so on. The example is as follows (Python):

>>> 875>>> + 8 ' Traceback (most recent): File "<pyshell#3>", line 1, in <mod ule> + ' 8 ' typeerror:unsupported operand type (s) for +: ' int ' and ' str '
    • Weakly-typed languages tend to tolerate implicit type conversions. Weakly typed languages include C, C + +, JavaScript, and so on. The example is as follows (JavaScript):

> 875> + 67 + ' 8 ' "678"
    • No type language: compilation


"Dynamic language/Static language"

    • A dynamic language is a language that checks variable types at run time. Dynamic languages include Python, JavaScript, and so on. The example is as follows (Python):

>>> a = 7>>> type (a) <class ' int ' >>>> a = ' Z ' >>> type (a) <class ' str ' >
    • A static language is a language that examines variable types at compile time. Static languages are C, C + +, Java, C #, and so on.


"Compiled language/interpreted language"

    • A compiled language requires the compiler to compile the source code into machine code before it can be executed. It is generally necessary to compile and link these two steps. Compiled language has c, C + + and so on.

    • A program that interprets a language does not need to be compiled, but rather than a compiled language, the explanatory language is translated on a per-line basis when it runs the program. Interpreted languages are Python, JavaScript, and so on.

    • Semi-compiled/semi-interpreted language, compile without generating machine code, generate intermediate code (/byte code). The code language is Java, C #, and so on. (Java execution is near-interpreted, C # executes close to compile-time)


"Strong and weak quadrant diagram" (Image source: Dynamic Typing is not Weak Typing)



This article is organized according to the following two articles:

1. Know: What is the difference between weak type, strong type, dynamic type and static type language?

2, more than 100 kinds of programming linguistics what? Programming Paradigms/Programming paradigm

3, what is the compiler language is dynamic type?


Walker * * *


Strongly typed language/weakly typed language, dynamic language/static language, compiled language/interpreted language (collation)

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.