Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:82214 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 23071 invoked from network); 9 Feb 2015 03:36:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Feb 2015 03:36:40 -0000 Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.180 as permitted sender) X-PHP-List-Original-Sender: pierre.php@gmail.com X-Host-Fingerprint: 209.85.216.180 mail-qc0-f180.google.com Received: from [209.85.216.180] ([209.85.216.180:38679] helo=mail-qc0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 34/E2-26926-74B28D45 for ; Sun, 08 Feb 2015 22:36:39 -0500 Received: by mail-qc0-f180.google.com with SMTP id s11so876498qcv.11 for ; Sun, 08 Feb 2015 19:36:36 -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; bh=QNQNelHSR1aTVhw8Q6jC0l5tLoX4zDydcbRECiqUUsA=; b=L2iU9v4rT3KwJZU2/vqpD9MibGR52rsHBTHWaGDf0r2ozcHw5sto6o7cn29wfYWYQl YcnAD4ffeLZiOkqImrPQQGjMZMu8z5vkA8G2VszpTk7wZf3FPxYnB8LauB5EcjtBsD1e QiSbusqAFyCaumTKjX+UfyXXUIsdx7FjSHIR6paFS9Xo4V8YiR27obbqnkY8GS8axUA8 kC6S2ovV5v6C9ypkLQbBS7z2j1GMuu94K1gqR0c1dVE2c4KeXCzc8gZGFieIqfsJfBHy Uz6Mglc6IqgJOYnDvP1tUwsdgLpGnTRPeMAAg4JhnvR0dXRU//Be3OBsniiNBdtJSadI XOwQ== MIME-Version: 1.0 X-Received: by 10.224.171.67 with SMTP id g3mr29518463qaz.17.1423452996624; Sun, 08 Feb 2015 19:36:36 -0800 (PST) Received: by 10.96.185.37 with HTTP; Sun, 8 Feb 2015 19:36:36 -0800 (PST) Received: by 10.96.185.37 with HTTP; Sun, 8 Feb 2015 19:36:36 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Feb 2015 10:36:36 +0700 Message-ID: To: Yasuo Ohgaki Cc: PHP internals , Matt Parker Content-Type: multipart/alternative; boundary=047d7b67768837e99d050e9f7a54 Subject: Re: [PHP-DEV] scalar type hints From: pierre.php@gmail.com (Pierre Joye) --047d7b67768837e99d050e9f7a54 Content-Type: text/plain; charset=UTF-8 On Feb 9, 2015 10:29 AM, "Yasuo Ohgaki" wrote: > > Hi Matt and all, > > On Mon, Feb 9, 2015 at 6:52 AM, Matt Parker wrote: > > > The first question was 'Did you read the RFC' and the second 'Would > > you like the RFC to > > pass'. I set it up Friday morning (GMT) and tweeted it around a bit > > (I have a grand total > > of 58 followers on twitter). So this relates to version 0.3 > > > > As of now, 306 people have responded, a lot more than I anticipated. > > 84% said they read > > the RFC; > 83% would like it to pass (full responses here: > > https://www.surveymonkey.com/results/SM-Q8KRRZV7/, the survey itself here: > > https://www.surveymonkey.com/s/SDB2V6Z). > > > > They don't know about DbC discussion probably. > I thought we were no where near to implement DbC, so I was willing to vote > +1 initially. > > However, DbC is coming close! > > DbC brings much more flexibility, strict/loose constraints, performance, > security, better documentation and more. > DbC suitable for weakly typed PHP perfectly. > > Therefore, I'm holding my vote now. > I hope everyone have an attention to DbC and consider thoughtfully. Imho they are totally different things. One is a core root feature (scalar "hinting"). Then we have annotations, which can be used(and is very often used for contracts) by DbC. However starting to stop one in favor of another is a strategic mistake. I left alone the DbC or annotations as phpdoc as we have discussed that to death already :) Cheers, Pierre --047d7b67768837e99d050e9f7a54--