I use the #
symbol around every dynamic value in my application and after posting some of my code on here for help, I've been told there's no need to use the #
in many places e.g. <cfif>
statements.
So I have started removing the # symbols, until I realised I broke my application because I removed the # symbols from the value=""
attribute of a <cfprocparam>
tag.
I am confused as to:
- Why use the
#
symbol is some places and not others (and what is the benefit of not using it?) - Why if they are not required in
<cfif>
and<cfargument>
tags are they suddenly required in<cfprocparam>
tags? - Due to this lack of consistency, is it not better to just wrap hashes around every dynamic value in the first place?