[PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-28 Thread Andi Gutmans
At 11:25 AM 4/28/2005 +0100, Duncan McIntyre wrote: On Wednesday 27 April 2005 10:16 pm, Andi Gutmans wrote: > At 03:28 PM 4/27/2005 +0300, Zeev Suraski wrote: > >At 20:12 25/04/2005, Christian Schneider wrote: > >>[snip] > >>But then again I think the whole thing is typical OO bloat anyway and > >

[PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-28 Thread Duncan McIntyre
On Wednesday 27 April 2005 10:16 pm, Andi Gutmans wrote: > At 03:28 PM 4/27/2005 +0300, Zeev Suraski wrote: > >At 20:12 25/04/2005, Christian Schneider wrote: > >>[snip] > >>But then again I think the whole thing is typical OO bloat anyway and > >>that's why I don't want to have language features a

Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Andi Gutmans
At 03:28 PM 4/27/2005 +0300, Zeev Suraski wrote: At 20:12 25/04/2005, Christian Schneider wrote: [snip] But then again I think the whole thing is typical OO bloat anyway and that's why I don't want to have language features added for it (-:C I wholeheartedly agree. So do I. If you really need such

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Zeev Suraski
At 17:44 27/04/2005, Duncan McIntyre wrote: Hmm. As I mentioned to Christian in a private email, I have a system which is 350K LOC. Now not all of that gets loaded at one time of course (thank God for __autoload()!), but there are times when a significant proportion of it is loaded. And then it mun

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Andrey Hristov
Hi, Duncan McIntyre wrote: On Wednesday 27 April 2005 2:19 pm, Zeev Suraski wrote: At 16:58 27/04/2005, Duncan McIntyre wrote: I remember similar arguments being made about most of the new OO features in PHP5. Out of interest, how is this more bloated than storing doc comments in memory? It's feat

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Derick Rethans
On Wed, 27 Apr 2005, Duncan McIntyre wrote: > On Wednesday 27 April 2005 2:19 pm, Zeev Suraski wrote: > > At 16:58 27/04/2005, Duncan McIntyre wrote: > > >I remember similar arguments being made about most of the new OO features > > >in PHP5. > > > > > >Out of interest, how is this more bloated th

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Duncan McIntyre
On Wednesday 27 April 2005 2:19 pm, Zeev Suraski wrote: > At 16:58 27/04/2005, Duncan McIntyre wrote: > >I remember similar arguments being made about most of the new OO features > >in PHP5. > > > >Out of interest, how is this more bloated than storing doc comments in > > memory? > > It's feature b

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Duncan McIntyre
On Wednesday 27 April 2005 2:19 pm, Zeev Suraski wrote: > At 16:58 27/04/2005, Duncan McIntyre wrote: > >I remember similar arguments being made about most of the new OO features > >in PHP5. > > > >Out of interest, how is this more bloated than storing doc comments in > > memory? > > It's feature b

Re: [PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Derick Rethans
On Wed, 27 Apr 2005, Zeev Suraski wrote: > I'm not too thrilled about this deal. I don't think I'd be in favour of > accepting this attributes patch regardless of just about anything else. Not > sure how others feel about it, but at least in my opinion, this feature is a > clear 'no no' for PHP.

[PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Zeev Suraski
At 16:58 27/04/2005, Duncan McIntyre wrote: I remember similar arguments being made about most of the new OO features in PHP5. Out of interest, how is this more bloated than storing doc comments in memory? It's feature bloat, not memory consumption bloat. Adding obscure operators is the worst t

[PHP-DEV] Re: [mail] Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Duncan McIntyre
On Wednesday 27 April 2005 1:28 pm, Zeev Suraski wrote: > At 20:12 25/04/2005, Christian Schneider wrote: > >[snip] > >But then again I think the whole thing is typical OO bloat anyway and > >that's why I don't want to have language features added for it (-:C > > I wholeheartedly agree. > > Zeev I

Re: [PHP-DEV] Re: Attributes support proposal

2005-04-27 Thread Zeev Suraski
At 20:12 25/04/2005, Christian Schneider wrote: [snip] But then again I think the whole thing is typical OO bloat anyway and that's why I don't want to have language features added for it (-:C I wholeheartedly agree. Zeev -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visi

Re: [PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Sebastian Bergmann
Duncan McIntyre wrote: > Sebastian - how's the parser going? Have a look at http://pear.php.net/pepr/pepr-proposal-show.php?id=237 -- Sebastian Bergmann http://www.sebastian-bergmann.de/ GnuPG Key: 0xB85B5D69 / 27A7 2B14 09E4 98CD 6277 0E5B 6867 C514 B85B 5D69 -- PHP

[PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Christian Schneider
Duncan McIntyre wrote: It's different because in your example there is no way of knowing that $AllowableValues refers to $WidgetType. My solution would be var $attributes = array( 'accountType' => array( 'Type' => "Select", '

[PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Duncan McIntyre
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: >

[PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Christian Schneider
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 look

Re: [PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Hendy Irawan
> http://www.calligram.co.uk/oss/Attributes Whew Duncan! That's *VERY* nice. Anyways... Annotations (structured comments) vs. Attributes? Here's my take: Since annotations are comments, you can remove them without modifying behavior. However, attributes are actually *needed* since they are part

[PHP-DEV] Re: Attributes support proposal

2005-04-25 Thread Duncan McIntyre
Sebastian - how's the parser going? I've finished my patches to make attributes work as native PHP tokens. You can get the code and read a discussion about the various possibilities for implementation at http://www.calligram.co.uk/oss/Attributes I really hope we can come to a consensus on how