Ed Leafe wrote: > On Jul 12, 2007, at 10:15 AM, Simen Haugen wrote: > >> Sounds good, but is it possible to remove the properties that doesn't >> make sense? Perhaps throw an exception for properties that doesn't >> make >> sense, or but it in a list of blocked properties and override >> __getattribute__ to disallow these based on shape type? > > I suppose its possible, but I don't think it's worth the disruption > in order to tell people that they are doing something really stupid.
In general, aspiring to throwing exceptions when the developer is doing something stupid is IMO a *really good thing*. Silently accepting it means the developer doesn't get instant feedback on the stupidity and thus time is wasted. It is really stupid to leave my keys in the ignition when I go into the grocery store, but I do that all the time and I'm glad my car gives me an obnoxious buzz to remind me. -- pkm ~ http://paulmcnett.com _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users Searchable Archives: http://leafe.com/archives/search/dabo-users This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]
