Re: Attributes support proposal

From: Date: Mon, 25 Apr 2005 16:48:32 +0000
Subject: Re: Attributes support proposal
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-16080@lists.php.net to get a copy of this message
It's different because in your example there is no way of knowing that $AllowableValues refers to $WidgetType. You would have to explicitly code that relationship into every class which needed to know it. On Monday 25 April 2005 5:28 pm, Christian Schneider wrote: > Duncan McIntyre wrote: > > http://www.calligram.co.uk/oss/Attributes > > In your example I fail to see how > @[ WidgetType("Select"); > AllowableValues(array("Current","Savings")); ] > is different from the good old > var $WidgetType = "Select", $AllowableValues = array("Current", > "Saving"); > apart from looking weird and scary (-:C > > Just my $.02, > - Chris Duncan

« previous php.internals (#16080) next »