“Well Formed” ColdFusion

<minor rant>

I’ve run across a trend in ColdFusion code that’s out there living in the wild web, to terminate “empty” tags with a />, like in XML. The best explaination I’ve heard for this behavior is to make ColdFusion code “well formed” XML. But what I don’t see, is how this explaination holds water.

Maybe an XML programmer out there can point out, how is this:

<cfset var foo=ListFirst(bar,”,”) & listGetAt(bar,4,”,”)>

any more proper syntax than:

<cfset var foo=ListFirst(bar,”,”) & listGetAt(bar,4,”,”) />

</minor rant>

DeliciousEmailShare

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">