What is a weakly typed programming language

Web 2021-08-18 19:37:58 1 7,408

Weakly typed programming languages are also called weakly typed definition languages, as opposed to strongly typed definitions. Such as JavaScript, vb, php, etc. are weakly typed languages. The main differences between weakly typed languages and strongly typed languages are as follows.

(1) Weakly typed languages, variables are not divided into various types, variable declarations use the keyword var, which will automatically determine the type and perform conversion when assigning values to variables; strongly typed languages, there are many types of variables, and variables can only accept and The same data type.

(2) Weakly typed languages, no explicit conversion between variables is required. For example, subtract the string 12 and the integer 3 to get the value 9, without explicit conversion.


Your opinion

Already have 1 Article answer
  • website 1楼
    Thank you for all your work on this site. Gloria enjoys carrying out investigation and it's really easy to understand why. All of us hear all about the lively mode you convey vital things through this website and cause response from others about this point then our own child is without a doubt learning a lot. Enjoy the remaining portion of the new year. You're the one carrying out a powerful job.
    发布于 2021/12/16 22:06