弱类型语言也称为弱类型定义语言。与强类型定义相反。像vb,php等就属于弱类型语言·
因为是一种动态的、弱类型语言,PHP非常灵活。
It is flexible by being a dynamic and weakly typed language.
极端情况下,弱类型语言(例如assembler)允许将任意数据类型赋给另一种类型(不管这种赋值是否有意义)。
At the extreme endpoints, a weakly typed language such as Assembler lets you assign any data type to any other (whether the assignment makes sense or not).
静态类型的语言既可以有强类型,也可以有弱类型;而动态类型系统通常是强类型的,但也不完全是。
Statically typed languages can have strong or weak typing; dynamically typed systems are usually, though not exclusively, strongly typed.
And in fact, under type checking, different languages sometimes fall on a spectrum from weak to strong typing.
实际上,在类型检查的下面,不同的语言会对应着,从弱到强的一个定型范围。
I love Lisp, but Lisp is certainly in the category of a very weakly typed language.
我爱Lisp,但是Lisp当然,是属于在类型检查比较弱的语言一类。
应用推荐