Andy Wardley said: > In Perl you have to care about the difference between $user->name() and > $user->{ name }. But TT hides all that from you. I think that's the > Right Way To Do It. When you're doing "presentation" you shouldn't be > worrying about different data types and other "programming" crap like > that. You want the name of the user and you don't (or shouldn't) care > where it comes from or how it is calculated. That's for the back-end > code and data designers to worry about.
I agree that this is wrong. In OO terms, it exposes the impementation to the user. It's wrong for templates, but it's also wrong for ordinary classes. If I decide that I want to change some part of the interface from being a plain integer to calling a method, why should the users of the class care. Languages such as Eiffel have got this right, and yes Greg, Perl 6 will too :-) -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net