ColdFusion is referred to as a weakly typed language. That means that it is not necessary for the programmer to make distinctions between different types of data used in a program. For instance, ColdFusion will, as you know, process both of these statements in a roughly equivalent manner:
<cfset myNumber = '2'> ~= <cfset yourNumber = 'two'>
Of course this does not mean that the following statement returns true:
<cfif myNumber eq yourNumber>...
It does mean that it is very easy to start using ColdFusion, because it cuts down on the amount of code you have to write, how much you have to remember about the language when you're working, and it decreases necessary effort in outputting, testing, or otherwise referencing the variables . Java, however, uses a number of different data types to store information, all of which must be referenced correctly and cast into different types depending on what you're doing with them.
Top |