Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82994 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17277 invoked from network); 17 Feb 2015 18:26:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2015 18:26:07 -0000 X-Host-Fingerprint: 77.193.237.4 4.237.193.77.rev.sfr.net Received: from [77.193.237.4] ([77.193.237.4:25349] helo=localhost.localdomain) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 73/19-19463-BB783E45 for ; Tue, 17 Feb 2015 13:26:05 -0500 To: internals@lists.php.net Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes References: <011801d04a07$83ab1c00$8b015400$@php.net> <016f01d04a3a$e9183220$bb489660$@php.net> Date: Tue, 17 Feb 2015 19:25:50 +0100 MIME-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Message-ID: User-Agent: Opera Mail/1.0 (Win32) X-Posted-By: 77.193.237.4 Subject: Re: [PHP-DEV] Reviving scalar type hints From: bensor987@neuf.fr ("Benoit Schildknecht") Le Tue, 17 Feb 2015 00:58:18 +0100, Sara Golemon a =C3= =A9crit: > On Mon, Feb 16, 2015 at 2:50 PM, Fran=C3=A7ois Laupretre = > wrote: >> Once again, anyone can take over version 0.3, if it is so great. Why = = >> don't you do it ? >> I will play the game, stop working on my proposal, and vote 'yes' aga= in. >> But don't ask me to do it in your place. >> > If nobody else does it, I will. > > I think Andrea's 0.3 proposal was extremely well balanced, served > everyone's needs whether they would admit it or not, and who's only > failing (subjectively termed) was the use of declare(). I think > declare() is fine and not nearly as ugly as some have slandered it to > be, but I'm willing to read the winds and modify it for v0.4. > > Straw poll: > 1) 2) 3) use strict; (psuedo-namespace) > 3) 4) declare(strict=3Dtrue); (As a top-level declare only) > 5) declare(strict=3Dtrue); (exactly as in v0.3 -- maybe you liked it) > 6) your write-in vote here > > I'm not going to scope in union types, nullables, or falsables. We > can leave that for a followup RFC, this one is contentious enough as > it is. > > -Sara I like 2) No possible confusion, and it's a clear tag. But implementing 3) would be a good thing, since it is Hack syntax. Even= = if I don't like to use comments to enable something. If we have 2 similar features between PHP and Hack, I think it should ha= ve = the same syntax, so there are minimum BC from one language to another, a= nd = people would spend less time to remember which syntax is the right synta= x = for PHP or Hack.