Title: [CFCDev] "this" scope vs. unnamed
I agree with using methods to set and get data... but if you just use structure then all of the other methods don't exist. Settings and methods are valid... just not popular ways of doing objects to the "right" crowd. Know what I mean. Yet, structure does not have the ability to do something like total cart in a shopping cart object... and therefore the code reuse for say, flash remoting is gone. Got it?
 
John Farrar
----- Original Message -----
Sent: Wednesday, July 30, 2003 4:09 PM
Subject: RE: [CFCDev] "this" scope vs. unnamed

Personally, I have not yet found a time when you'd say "this.firstName".  I subscribe to the notion that instance data should be private and accessed via methods rather than exposed directly -- if you want to say myComponentInstance.firstName then why not just use a structure? 

Reply via email to