Matthias wonders why we don't just use objects to model properties. Great question. Internally circumventing any behavior you've added and accessing the underlying field wouldn't be as straightforward, but I'm not sure that's such a big deal. This would certainly make sharing logic between properties a lot easier. I can't think of any reason you'd want to add behavior around dereferencing the property object itself, so I don't have a problem with exposing it as a public field. This uses up a little more memory and isn't quite as straightforward, but I think I still like it.
Friday, January 12, 2007
Hi. My name is Bob.
- Types vs. Instances
- Dave doubts the Apple TV
- What does the iTunes Paramount deal mean?
- 802.11n for my Mac Pro
- Piranha Plant
- How does your blog look with zoomed fonts?
- New Orleans
- Five things you may not know about me...
- Re: God bless the re-inventers
- Resize any text field