码迷,mamicode.com
首页 > 编程语言 > 详细

开发语言弱/强、动态/静态分类

时间:2017-09-27 21:49:57      阅读:199      评论:0      收藏:0      [点我收藏+]

标签:force   figure   sign   assign   弱类型   static   vbs   like   red   

1. 静态类型(Statically Typed):A language in which types are fixed at compile time. Most statically typed languages enforce this by requiring you to declare all variables with their datatypes before using them. Java and C are statically typed languages.

2. 动态类型(Dynamically Typed):A language in which types are discovered at execution time; the opposite of statically typed. VBScript and Python are dynamically typed, because they figure out what type a variable is when you first assign it a value.

3. 强类型(Explicit Typed):A language in which types are always enforced. Java and Python are strongly typed. If you have an integer, you can‘t treat it like a string without explicitly converting it.

4. 弱类型(Implicit Typed):A language in which types may be ignored; the opposite of strongly typed. VBScript is weakly typed. In VBScript, you can concatenate the string ‘12‘ and the integer 3 to get the string ‘123‘, then treat that as the integer 123, all without any explicit conversion.

开发语言弱/强、动态/静态分类

标签:force   figure   sign   assign   弱类型   static   vbs   like   red   

原文地址:http://www.cnblogs.com/XiongMaoMengNan/p/7604013.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!