Ray Camden has blogged about this in the past, as you can read here:
http://www.coldfusionjedi.com/index.cfm/2011/1/26/ColdFusion-and-Unscoped-Variables

In summary, there are theoretical performance gains by scoping all
variables and there are some security concerns by not scoping vars.
Both are discusses in Ray's post.


On Wed, May 18, 2011 at 12:51 PM, Eric Roberts
<ow...@threeravensconsulting.com> wrote:
>
> We had a discussion at work as to whether or not we should scope local vars
> with the "variables." scope since that is implied in a cfset.  One camp says
> it is not needed because of the implicit scoping when using cfset...the
> other camp says it is better to tack on "variables." and make it explicit
> for security and readability.  Any thoughts?
>
> Eric
>
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:344621
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to