[thelist] <cfset> vs <cfscript> for a simple function call

Jeff Howden jeff at jeffhowden.com
Wed Jul 16 11:17:49 CDT 2003


> From: Sarah
> > well, imo, it's definitely a huge issue with regards
> > to readability.  when you're scanning code looking for
> > where stuff is happening, a <cfset> tag used
> > "improperly" like this can easily slip through the
> > cracks unnoticed.
> Nice to see that I've started an interesting debate :)
> I actually agree with both of you, but I have always
> felt that the most annoying part of ColdFusion was not
> being able to just call a function without having to use
> a <cfscript> block or something silly like
> <cfset temp = SomeFunction()>.

why the resistance to <cfscript> blocks?  i actually find myself using them
wherever possible in my coding.

> So, in rebellion, I lean towards using <cfset> in the
> "improper" way.

... and thereby hurting the readability of your code which will come back to
haunt you when you need to maintain it again at a later date.


Jeff Howden - Web Application Specialist
Resume - http://jeffhowden.com/about/resume/
Code Library - http://evolt.jeffhowden.com/jeff/code/

More information about the thelist mailing list