Section 3.2. Data Types in ColdFusion

   

3.2 Data Types in ColdFusion

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


Java for ColdFusion Developers
Java for ColdFusion Developers
ISBN: 0130461806
EAN: 2147483647
Year: 2005
Pages: 206
Authors: Eben Hewitt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net