Strength and weakness of a set of languages
Typing can be strong or weak (weakened). The stronger the input language, the fewer operations can be used in the same operation. The weakness and strength of a language set does not have an exact threshold - a language may have a stronger set than another, and weaker than another. Writing Python is much stronger than JS .
==
implemented as a less or less typed operation. It can compare different types, but you need to have both values โโof the same type in order to be able to get True
. a == b #true
means a
, and b
are objects of the same type and have equal values. >
<
in Python 3 it is implemented as a strongly typed operation and cannot be performed for different types.
source share