Hydrowizard wrote:
> Thanks Ian for explaining that-last question what is
'initializes' in laymans terms? Cheers
>
> this all reminds me of the complexity of learning how to
do cfif equivalents in cfscript!
In strongly typed languages like Java and C++, before one can
use a
variable one must initialize it. I.E. one must name it;
define the type
of variable, integer, string, float, etc., its scope, global,
package,
local, etc.
ColdFusion is generally a loosely typed language and does not
require
this rigid definition. But when one starts working with code
that can
be used repeatedly in the same space, typing becomes more
important. So
it is a best practice to type ones variables in a function to
keep the
code easier to work with.