Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81992 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22621 invoked from network); 6 Feb 2015 00:50:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Feb 2015 00:50:18 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.46 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.46 mail-qa0-f46.google.com Received: from [209.85.216.46] ([209.85.216.46:55002] helo=mail-qa0-f46.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 9F/88-17766-ACF04D45 for ; Thu, 05 Feb 2015 19:50:18 -0500 Received: by mail-qa0-f46.google.com with SMTP id j7so8588227qaq.5 for ; Thu, 05 Feb 2015 16:50:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=6pF9Rf/gisP5CeM0XUDJ1LhNaSSInwmX9uc+26yZpIg=; b=KTr9pTvUBmlXKCzP/pX4K6q6i1GsxteJcJ1T1VHZ72PxvV+xBqmDewZMW0JgOW6UPW mDeskkkPm+Sc/yVY/ACy+LZzk2y1d2fvAY/9mlytLB66hPzz94BqVtlhmGVnnvTUtFM8 hQd3sz71yUJtUl1EGCWxcn/CneGdHY4nwig4JYpVFadxe/xKx3ojE/9rZP9uf7cIUKyD 1hV8I8O8c7PWHsPZjdiSHwfwj37rJEMRt5n1BISRUjldyhtcOr0RjDRsYpPo4Au6WhR5 8BpSj2K7tSOmAURm8E1XdaLbh4dg83ZNm82AFmUljo0wSjTM3ITngX1BenEYAQmz+Mu9 R/Lg== MIME-Version: 1.0 X-Received: by 10.224.113.200 with SMTP id b8mr2200273qaq.35.1423183815300; Thu, 05 Feb 2015 16:50:15 -0800 (PST) Received: by 10.96.3.168 with HTTP; Thu, 5 Feb 2015 16:50:15 -0800 (PST) In-Reply-To: References: <8703B53E-2C4A-4AC6-95C4-D4F19C6D5221@ajf.me> Date: Fri, 6 Feb 2015 07:50:15 +0700 Message-ID: To: Andi Gutmans Cc: Andrea Faulds , PHP Internals Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] [VOTE] Scalar Type Hints From: pierre.php@gmail.com (Pierre Joye) On Fri, Feb 6, 2015 at 6:22 AM, Andi Gutmans wrote: > I have to say I=E2=80=99m pretty disappointed at the opening of the vote. > We had a pretty good RFC (thank you) for weak type hinting which was alig= ned with the spirit of PHP and everyone was able to rally around it. > This has now been morphed into something very hard to swallow and IMO hav= ing such a declare(=E2=80=A6) syntax will be ridiculed by the broader app d= ev community until the end of time=E2=80=A6 But even that syntax aside (it= =E2=80=99s only syntax after all), I think we lost the ability to reach con= sensus on something so important to everyone which we haven=E2=80=99t been = able to come to agreement on for over 10 years. Finally it was there, in re= ach and you made a 180 degree turn. > I think it=E2=80=99d be so much easier for us to implement weak type hint= ing. Have everyone rally around it. Be happy and then learn and see whether= an additional mechanism is really necessary. We could even add an E_STRICT= _TYPES error_reporting flag to help folks =E2=80=9Cdebug=E2=80=9D their cod= e if they so wish to see if there are any hotspots in their code they may w= ant to take a look at - again not necessarily an error but maybe a debuggin= g tool. > > But net, net - why not just implement the thing everyone can agree on. Ha= ve something really good in the spirit of the PHP Language for PHP 7 and le= arn how people leverage that=E2=80=A6 The reality is that for the majority = of the Web community =E2=80=9C1=E2=80=9D coming in from HTTP should be acce= pted as a 1. Period. > > I voted =E2=80=9Cno=E2=80=9D but I will vote =E2=80=9Cyes=E2=80=9D for th= e competing RFC which is 80% of your RFC. Why are we not given that option?= ????? I have to agree here while I like the declare option, it should have been an option as we clearly do not have a consensus during the discussions (and will never have). Jeopardize the whole because of that sounds dangerous to me.