Ok
 
I have been wathing this tread for a while now so its time to add my 2cents in.
 
Question : What makes CF so good to use?
Answer : There are many things, but the main one I would see is that it is so quick to develop in.
 
By adding this sort of  declaration into the coding, all your doing is starting to bog down development time again.  Thats what makes CF such a powerfull tool, is that you dont have to worry about all the crap that you have to do in ASP and such, by declaring variables before you can start to use them.
 
CF will never be a full blown OO language while it is tag based.  You can implement OO style coding and with CFCs and such now, you can start to see where its going with objects and inheritence, but as for complete OO, I dont think so.
 
Just imagine how much more coding will be needed if we then have to start declaring variable before use, not to mention code migration.
In the origianl example, I would have just put that down to a typo.  I dont see how declaring variables before you use them is going to help in this situation.  It wouldnt matter if its been declaired or not, its still going to error.
 
Even with this
<CF_STRICT>
        <CF_DECLARE colour1="red">
        <CF_DECLARE colour2="green">
        <CF_DECLARE color3="pink">
        <CF_DECLARE colour4="">
        <CFSET colour3 = colour3 & colour2>
        <CFSET color4 = colour1 & colour2>
</CF_STRICT>
 
If you miss type a var in your decalre tag, same situation as before.  Its just a typo
 
Can anyone explain to me the benifits of declaring a variable before it gets used arpart from if you are wanting to specify a value type faor the variable? eg number, struct ect
 
Steve
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to