Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87121 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 1486 invoked from network); 12 Jul 2015 16:36:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2015 16:36:43 -0000 Authentication-Results: pb1.pair.com header.from=marcio.web2@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=marcio.web2@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.179 as permitted sender) X-PHP-List-Original-Sender: marcio.web2@gmail.com X-Host-Fingerprint: 209.85.160.179 mail-yk0-f179.google.com Received: from [209.85.160.179] ([209.85.160.179:35518] helo=mail-yk0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 70/14-23914-A9792A55 for ; Sun, 12 Jul 2015 12:36:42 -0400 Received: by ykee186 with SMTP id e186so97954463yke.2 for ; Sun, 12 Jul 2015 09:36:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding; bh=UbRg9/AOsp7m1Ur6DxM9uwjTVccEmy76eZuRNhjuFWA=; b=DZcEMcgfn2TO7kUGuueE6nfd3wCLXcoubYg3fUxtxn1V3jz70o/k1Vbubx3FhtCqI3 +gDqQu0X+Y7C10f7Qb8Nzhutp8B8/X7SOeJu0yUIDmOAuf7QwInuth9Z6es9uFgj785V 1KGeESUDc1Xm5hEziqayKWcyiozAH0RrfsTnh/dO7nc3PjHp9+SiepBTKr3U/9Wz8y0E VCgv7j6Synx2zThzq9qC3T3Xrj5y9PWov1FBfNNRBqnWfJh0uZtkCVSDB57pb5HwpKp3 UsMPL5jyx4DzMbr9n7l2E5pZ5eX/D5toL8Y9ZVnGJWquNpJx3YSLVifW4hRcdx3Q1dP/ +m7A== X-Received: by 10.129.115.214 with SMTP id o205mr35177216ywc.96.1436718999761; Sun, 12 Jul 2015 09:36:39 -0700 (PDT) MIME-Version: 1.0 Received: by 10.129.36.7 with HTTP; Sun, 12 Jul 2015 09:36:20 -0700 (PDT) In-Reply-To: <55A224E0.4090804@lsces.co.uk> References: <55A16375.4000707@php.net> <55A220D8.3090004@gmail.com> <55A224E0.4090804@lsces.co.uk> Date: Sun, 12 Jul 2015 13:36:20 -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] PHP7 and types From: marcio.web2@gmail.com (Marcio Almada) Lester, 2015-07-12 5:27 GMT-03:00 Lester Caine : > On 12/07/15 09:10, Stanislav Malyshev wrote: >>> Not completely bogus. At least with typed properties you won't need to >>> > actually write the docblocks to have the IDE "hints". It's a minor wi= n >>> > for IDE users too. >> I don't see "not needing to write docblocks" as a win, quite the >> contrary. In fact, in a number of projects I worked with, code without >> proper documentation (including docblocks) simply wasn't accepted into >> the repository. >> >> While I don't think this needs to be mandatory, I also don't see major >> difference - so you have to write type instead of docblock, you still >> have to write something. > > In addition, the docblock contains a lot more material than just a few > types, so one still needs to have one. The main problem with adding > types is they become part of the code, while a docblock can simple be > stripped. > Please refer to reply given to Stas. > As a 'minor win for IDE users' it is also questionable since the every > IDE will need to be re-written to support both methods of working. > You meant "updated" not "re-written". IDEs that want to stay relevant to the community will always be updated, and h=C3=A6ck, it's much easier to analyze real language syntax as opposed to uncertain user space DSLs inside comments. IDE maintainers won't complain about that, for sure. > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > Marcio