Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Pierrick Charron
Hi, First, the actual patch is working but Implementation and behavior may change following all comments. This is still a work in progress and all comments/contributions from everybody are welcome :) That said : On 9 May 2011 21:23, Stas Malyshev wrote: > Hi! > > > Objects are only instantiat

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Stas Malyshev
Hi! Objects are only instantiated when requested (getAnnotations() or getAnnotation()) So how this happens - does the class store the text of the annotation? Or expressions in the call are evaluated and stored, but the object is not instantiated? What if I call getAnnotation() repeatedly - a

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Hi Stas, On Mon, May 9, 2011 at 9:35 PM, Stas Malyshev wrote: > Hi! > >> I updated the RFC. I may have missed one thing or two, but overall >> idea and how code behave is there. >> This question is answered on wiki RFC. =) >> >> Here is the direct link: https://wiki.php.net/rfc/annotations > > So

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Ferenc Kovacs
On Tue, May 10, 2011 at 2:25 AM, Lester Caine wrote: > guilhermebla...@gmail.com wrote: > >> Hi Lester, >> >> I updated the RFC. I may have missed one thing or two, but overall >> idea and how code behave is there. >> This question is answered on wiki RFC. =) >> >> Here is the direct link: https:

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Hi Lester, What you don't see is that you're against having it because you already had the effort to built this support. So answering your question related to use cases, you own codebase is a good example. You had to create a parser for docblock because PHP doesn't have support. And now you're as

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Stas Malyshev
Hi! I updated the RFC. I may have missed one thing or two, but overall idea and how code behave is there. This question is answered on wiki RFC. =) Here is the direct link: https://wiki.php.net/rfc/annotations Some questions I didn't find the answers in the RFC: 1. When the annotation objects

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Lester Caine
guilhermebla...@gmail.com wrote: Hi Lester, I updated the RFC. I may have missed one thing or two, but overall idea and how code behave is there. This question is answered on wiki RFC. =) Here is the direct link: https://wiki.php.net/rfc/annotations But there is nothing there that explains why

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Hi Lester, I updated the RFC. I may have missed one thing or two, but overall idea and how code behave is there. This question is answered on wiki RFC. =) Here is the direct link: https://wiki.php.net/rfc/annotations Regards, On Mon, May 9, 2011 at 6:42 PM, Lester Caine wrote: > guilhermebla..

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Lester Caine
guilhermebla...@gmail.com wrote: What I thought it could be changed is: - Allow PHP to support it natively and also take advantage of opcode cache - Make API cleaner Guilherme you still also have to explain WHY we need this. I have a perfectly functional documentation and hinting setup working

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Stas Malyshev
Hi! I'm not bitching against do and don't dos... I'm bitching about ignored feature that are not even discussed. I think annotations were discussed very extensively. But I totally can see how one particular aspect could slip through. In this case it is right to remind people about it and res

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Hi Rasmus, Thanks a lot for the response. This was the first email that I got that is not rude against my patch. I have worked on Doctrine annotations support (which is being used by Symfony and also Typo3), which is a LL(*) parser that processes docblocks and uses runtime classes to build associ

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Rasmus Lerdorf
On 05/09/2011 10:48 AM, guilhermebla...@gmail.com wrote: Rasmus, I already wrote an RFC, I already wrote a patch and none from php-src gave me some valuable feedback. During private conversations while flaming messages were popping on ML thread, I updated the code to be more PHP compatible and w

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Rasmus, I already wrote an RFC, I already wrote a patch and none from php-src gave me some valuable feedback. During private conversations while flaming messages were popping on ML thread, I updated the code to be more PHP compatible and when I went to update the RFC on wiki, it became offline. B

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Rasmus Lerdorf
On 05/09/2011 10:32 AM, guilhermebla...@gmail.com wrote: Hi Richard, Again what I commented on other thread and again you barely see what I mentioned, the feature is ALREADY written in C and compatible with latest PHP trunk. I'm not bitching against do and don't dos... I'm bitching about ignored

Re: [PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread guilhermebla...@gmail.com
Hi Richard, Again what I commented on other thread and again you barely see what I mentioned, the feature is ALREADY written in C and compatible with latest PHP trunk. I'm not bitching against do and don't dos... I'm bitching about ignored feature that are not even discussed. I agree with you, it

[PHP-DEV] Please let's not bitch about lazy users not learning C to implement THEIR missing feature. (Was Re: [PHP-DEV] 5.4 again)

2011-05-09 Thread Richard Quadling
On 9 May 2011 15:44, guilhermebla...@gmail.com wrote: > It seems to me that you are not interested on user's request and > rather accept/implement only what the features that interest you. It's > very bad for the language and very bad for all of users. But surely it is a motivational factor to le