Perrin Harkins <[EMAIL PROTECTED]> said something to this effect on 02/07/2002: > Passing interfaces gives better independence between the > template and the code that called it, since the code doesn't > need to know what the template will use, and it avoids writing > any code to generate data structures to pass.
This is the key, in my mind. Objects that lazy load their data can be a big win in these cases; with a data structure, you have to do all that fetching, etc in advance. When you have objects that lazy load other (lazy-loaded) objects, you can (potentially) save a lot of up-front time when you instantiate your objects. (darren) -- Sigmund Freud is alleged to have said that in the last analysis the entire field of psychology may reduce to biological electrochemistry.
