Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:52189 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 51547 invoked from network); 10 May 2011 00:36:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 May 2011 00:36:22 -0000 Authentication-Results: pb1.pair.com smtp.mail=guilhermeblanco@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=guilhermeblanco@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.170 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: guilhermeblanco@gmail.com X-Host-Fingerprint: 209.85.160.170 mail-gy0-f170.google.com Received: from [209.85.160.170] ([209.85.160.170:36045] helo=mail-gy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 18/E5-14908-F7888CD4 for ; Mon, 09 May 2011 20:36:19 -0400 Received: by gyb11 with SMTP id 11so2436511gyb.29 for ; Mon, 09 May 2011 17:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-type:content-transfer-encoding; bh=x+OllHckhSjqTMoqxwE2d4x4zILBf0JhapD9eld/JcU=; b=MoqTLzTYRgV+eMIW1NFCgXzcEKTsZt0C9XtARucbfVz52txYuSyi222621B31ENM97 bZEKWn0oSAaWtj9aHRINDK/asXRKfJrs5MyqVjFC0hCNSb4ik6H5i0WK7D57bsgelZuB zvs+aIb4lfaqp3KZLl2369g322AmTv3Snr3t8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; b=lAzK0Q+T5pxxkvnHVe34g15IWhQlgtVom3LPg0mj/LaH19O6i5IfKIHN/Q3mYbNiq/ eD70xrjNhNC32JYoKM1K724Kc4Xoghzo8Ib5q/iud+atXPgorZIT0YNPqTYrx1Dg4tHW ibjps5bLfyEHxOWKU1Hl0tHyRa4yKNXqahIYo= Received: by 10.151.136.2 with SMTP id o2mr5874766ybn.204.1304987769214; Mon, 09 May 2011 17:36:09 -0700 (PDT) MIME-Version: 1.0 Received: by 10.147.171.4 with HTTP; Mon, 9 May 2011 17:35:49 -0700 (PDT) In-Reply-To: <4DC88602.30400@lsces.co.uk> References: <4DC826B1.4090806@lerdorf.com> <4DC82A36.8090604@lerdorf.com> <4DC85FBE.2060005@lsces.co.uk> <4DC88602.30400@lsces.co.uk> Date: Mon, 9 May 2011 21:35:49 -0300 Message-ID: To: Lester Caine Cc: PHP internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: 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) From: guilhermeblanco@gmail.com ("guilhermeblanco@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 asking me why is it needed because you already implemented it. It's like chicken and eggs. You wouldn't need to implement a docblock parser IF PHP already supported i= t. Also, you own comments answer you own question. You "compile" your code for production removing the docblocks (or adding a cache, or generating a file, etc, whatever you want). What does it prohibit you from doing the same with native support? Regards, On Mon, May 9, 2011 at 9:25 PM, Lester Caine wrote: > guilhermeblanco@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. =3D) >> >> Here is the direct link: https://wiki.php.net/rfc/annotations > > But there is nothing there that explains why this is any use where we are > not compiling code ... and are all things we are already doing with comme= nt > blocks ... which CAN be stripped to speed up operation once in a producti= on > environment. A compiler simply strips the unnecessary stuff when building > the running code, how do you propose PHP does that ? If I want compiled c= ode > then I can use any number of other languages, PHP simply runs what I have= in > the file. > >> Regards, >> >> On Mon, May 9, 2011 at 6:42 PM, Lester Caine =C2=A0w= rote: >>> >>> guilhermeblanco@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 from >>> docblock >>> entries in several years worth of code. Rewriting all of that would hav= e >>> to >>> have some reason, and working with two systems in parallel does not mak= e >>> sense. My current method of working is well supported in phpeclipse whi= le >>> your new offering will require some major work in phpeclipse and other >>> tools >>> simply to access it? More work for other open source developers who aga= in >>> probably don't need it. So as far as I am concerned I need to be >>> persuaded >>> why this code needs to be IN the core code when I for one can't see any >>> reason to use it. Just because COMPILED languages have it is not a reas= on >>> to >>> load an interpreted language with it. Adding it as a removable extensio= n >>> might make more sense to me, just as much of the less used code can be >>> disabled if we want. And I was coding in C/C++ long before I switched T= O >>> PHP >>> to get away from the problems of using compiled languages for dynamic w= eb >>> based systems. > > -- > Lester Caine - G8HFL > ----------------------------- > Contact - http://lsces.co.uk/wiki/?page=3Dcontact > L.S.Caine Electronic Services - http://lsces.co.uk > EnquirySolve - http://enquirysolve.com/ > Model Engineers Digital Workshop - http://medw.co.uk// > Firebird - http://www.firebirdsql.org/index.php > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --=20 Guilherme Blanco Mobile: +55 (16) 9215-8480 MSN: guilhermeblanco@hotmail.com S=C3=A3o Paulo - SP/Brazil