ColdFusion: Is it safe to leave out the variables keyword in a CFC?
问题 In a ColdFusion Component (CFC), is it necessary to use fully qualified names for variables-scoped variables? Am I going to get myself into trouble if I change this: <cfcomponent> <cfset variables.foo = "a private instance variable"> <cffunction name = "doSomething"> <cfset var bar = "a function local variable"> <cfreturn "I have #variables.foo# and #bar#."> </cffunction> </cfcomponent> to this? <cfcomponent> <cfset foo = "a private instance variable"> <cffunction name = "doSomething"> <cfset